Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0004754mantisbtemailpublic2012-08-26 16:17
Reporteruser_79356 Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version0.19.0 
Summary0004754: phpmailer sends invalid characters in message body
Description

My setup uses the PHP mail() function for sending mail, PHP 4.3.4 on windows XP. I don't know if this would affect other mail/system configurations.

in core/phpmailer/class.phpmailer.php, line 223:
var $LE = "\n";
MUST be replaced by
var $LE = "\r\n";

Additional Information

(Bare LFs in SMTP)
http://cr.yp.to/docs/smtplf.html

TagsNo tags attached.

Relationships

duplicate of 0011115 closeddregad phpmailer 2.3 breaks mail transmission 
has duplicate 0005176 closedthraxisp On windows system could not send a mail. 

Activities

user_79356

user_79356

2004-10-21 08:42

reporter   ~0008129

The presence of bare LFs in the message body PREVENTS any mail being sent, hence the "major" severity of the bug.

thraxisp

thraxisp

2004-10-22 05:52

reporter   ~0008133

Last edited: 2004-10-22 05:54

Can you provide more details on your setup, particularly the mail configuration? Can you try sending mail via a mailer or the built-in mail() function?

There seems to be no mention of this problem in the phpmailer archives.

edited on: 10-22-04 05:54

user_79356

user_79356

2004-10-22 06:52

reporter   ~0008136

Here's what the phpmailer guys told me:
http://sourceforge.net/tracker/?func=detail&aid=1051493&group_id=26031&atid=385707

Here's the exact scenario:
Mantis is setup to use the local mail() function.
Yes, the local mail() function works.
Before sending the generated email body to phpmailer, mantis correctly converted single LFs to CRLFs.
When I dumped the message as phpmailer would send it, it contained single LFs, added later.
The error which the mail() function returned contained this URL: http://cr.yp.to/docs/smtplf.html, and the given change in phpmailer fixed the issue.

Probably it is specific to our mailer, although I can't imagine why setting the default value to the one specified by the standart bothers phpmailer guys so much.

thraxisp

thraxisp

2004-10-22 07:25

reporter   ~0008138

Could you try the SMTP setting? It may be that your PHP mail() was compiled for Unix mailers.

I'm hesitant to make this change because this seems to be the only report of this problem we have.

chq

chq

2005-01-31 02:08

reporter   ~0009149

I didn't try other mode than SMTP.
My configuration:
Windows 2000,
Apache 2.0.52 + PHP 5.0.3 (without PEAR) + MySQL 4.1.8 + PHPMyAdmin 2.6.0 pl3 + Openssl 0.9.7e + SQLite 2.8.15.
It was installed from XAMPP Lite 1.4.11.
http://www.apachefriends.org/en/xampp-windows.html#646

nurikabe

nurikabe

2007-01-03 12:31

reporter   ~0013891

Last edited: 2007-01-03 12:33

Had the same problem with Mantis 1.1.0a2. Using a standard install of PHP5 from php.net.

Note that calling mail() directly seems to work.