Double-newlines screwing up message delivery

View: New views
2 Messages — Rating Filter:   Alert me  

Double-newlines screwing up message delivery

by Dan Wood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We are using PHPMailer version 2.3 -- I haven't yet taken the plunge  
to upgrade everything to the new version -- and things have been  
working fine until recently.  We moved to a new Linux server recently  
so maybe there is some correlation.

Most of the time we are having no problems, but we have a few people  
reporting that the messages they have received via PHPMailer have the  
headers spilling into the content.  I've gotten the .eml file from  
them directly to determine what is going on, and it looks like in each  
case, there are extra newlines after header lines, which of course is  
causing the headers afterward to be treated as if they were part of  
the message.

Can anybody think of why there might be these extra newlines appearing  
after header lines in a few cases?

Attached is an example.  I've pulled out some stuff to respect privacy  
of the recipient of the message...  Note how every line after the  
"Date" header starts inserting two newlines (LF's).

Is this familiar?  Something that could be happening from within  
PHPMailer?  Anything that might have gotten fixed in the new version?

Thanks,
Dan






Return-Path: <***@****.com>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on  
mail2.*******.com
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=4.0 tests=BAYES_00 autolearn=ham
         version=3.2.4
Received: from secure.karelia.com (173.45.238.25) by mail2.*******.com  
with
  ESMTP (EIMS X 3.3.9) for <ffl@************.com>;
  Wed, 5 Aug 2009 15:56:10 -0600
Received: by secure.karelia.com (Postfix, from userid 33)
         id 7577E2A4FEB; Wed,  5 Aug 2009 14:56:02 -0700 (PDT)
To: "ffl@************.com" <ffl@************.com>
Subject: General Inquiry
Date: Wed, 5 Aug 2009 14:56:02 -0700

From: "Dan Wood, Karelia Software" <***@****.com>

Reply-to: "Dan Wood, Karelia Software" <***@****.com>

Message-ID: <87d0a827b85e77a4d9aa10852a455cff@...>

X-Priority: 3

X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]

X-Mailer: Form relay for Sandvox. If you suspect abuse, contact us: http://karelia.com/support/

X-Remote-Addr: **.**.**.**

X-referer: http://www.************.com/contact_******.html

MIME-Version: 1.0

Content-Transfer-Encoding: 8bit

Content-Type: text/plain; charset="utf-8"

This is Dan, with a test message.  Trying to figure out what is going  
on.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Phpmailer-general mailing list
Phpmailer-general@...
https://lists.sourceforge.net/lists/listinfo/phpmailer-general

Re: Double-newlines screwing up message delivery

by Dan Wood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A followup -- it looks like changing the sending method from 'mail' to  
'sendmail' has fixed the problem.  So although it is a puzzler, I  
guess I don't really need an answer anymore now that I've worked  
around it.


On Aug 5, 2009, at 3:57 PM, Dan Wood wrote:

> We are using PHPMailer version 2.3 -- I haven't yet taken the plunge
> to upgrade everything to the new version -- and things have been
> working fine until recently.  We moved to a new Linux server recently
> so maybe there is some correlation.
>
> Most of the time we are having no problems, but we have a few people
> reporting that the messages they have received via PHPMailer have the
> headers spilling into the content.  I've gotten the .eml file from
> them directly to determine what is going on, and it looks like in each
> case, there are extra newlines after header lines, which of course is
> causing the headers afterward to be treated as if they were part of
> the message.
>
> Can anybody think of why there might be these extra newlines appearing
> after header lines in a few cases?
>
> Attached is an example.  I've pulled out some stuff to respect privacy
> of the recipient of the message...  Note how every line after the
> "Date" header starts inserting two newlines (LF's).
>
> Is this familiar?  Something that could be happening from within
> PHPMailer?  Anything that might have gotten fixed in the new version?
>
> Thanks,
> Dan
>
>
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Phpmailer-general mailing list
Phpmailer-general@...
https://lists.sourceforge.net/lists/listinfo/phpmailer-general