PHPMailer issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • starman7@hotmail.com

    PHPMailer issue

    i'm using phpmailer, the variable that makes up the html body contains
    other variables.
    when one of these other variables contains more than 980 characters, it
    stops rendering. any ideas on what would cause this limitation? is it
    the mailer or might it be my code which basically prepends and appends
    html (a table images etc.) around a message body containing the other
    variables (like product info fields). any workarounds?

    thanks,
    s7

  • Andy Hassall

    #2
    Re: PHPMailer issue

    On 1 Mar 2006 11:29:52 -0800, "starman7@hotma il.com" <starman7@hotma il.com>
    wrote:
    [color=blue]
    >i'm using phpmailer, the variable that makes up the html body contains
    >other variables.
    >when one of these other variables contains more than 980 characters, it
    >stops rendering. any ideas on what would cause this limitation? is it
    >the mailer or might it be my code which basically prepends and appends
    >html (a table images etc.) around a message body containing the other
    >variables (like product info fields). any workarounds?[/color]

    Is the content all on one line without linebreaks? If so, then you may be
    hitting the maximum line length. RFC 2821, section 4.5.3.1:


    "
    The maximum total length of a text line including the <CRLF> is
    1000 characters (not counting the leading dot duplicated for
    transparency). This number may be increased by the use of SMTP
    Service Extensions.
    "

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • starman7@hotmail.com

      #3
      Re: PHPMailer issue


      Andy Hassall wrote:[color=blue]
      > On 1 Mar 2006 11:29:52 -0800, "starman7@hotma il.com" <starman7@hotma il.com>
      > wrote:
      >[color=green]
      > >i'm using phpmailer, the variable that makes up the html body contains
      > >other variables.
      > >when one of these other variables contains more than 980 characters, it
      > >stops rendering. any ideas on what would cause this limitation? is it
      > >the mailer or might it be my code which basically prepends and appends
      > >html (a table images etc.) around a message body containing the other
      > >variables (like product info fields). any workarounds?[/color]
      >
      > Is the content all on one line without linebreaks? If so, then you may be
      > hitting the maximum line length. RFC 2821, section 4.5.3.1:
      >
      > http://www.ietf.org/rfc/rfc2821.txt
      > "
      > The maximum total length of a text line including the <CRLF> is
      > 1000 characters (not counting the leading dot duplicated for
      > transparency). This number may be increased by the use of SMTP
      > Service Extensions.
      > "
      >[/color]

      thanks, yes i believe it is all on one line. would adding BRs in the
      string help since it is the HTML body, or \n\n linebreaks? any simple
      solutions?

      i did see this in the message source --> Sun-Java-System-SMTP-Warning:
      Lines longer than SMTP allows found and truncated.

      which might be a further confirmation.

      thanks again,
      s7

      Comment

      Working...