Jump to content

Email bad headers


egs

Recommended Posts

For a little while we've been recieving emails sent from whmcs which contain "Improper use of control character"

 

The header of the email will look something like :

 

---

 

WARNING: bad headers - Improper use of control character (char 0D hex): Date:

Fri, 7 Aug 2009 01:49:59 +0100\r\n Improper use of control character (char 0D

hex): From: ...e Servers <billing@EMAILADDRESS>\r\n Improper use

of control character (char 0D hex): Message-ID:

...8e4fc33002ffc2@EMAILADDRESS>\r\n Improper use of control

character (char 0D hex): X-Priority: 3\r\n Improper use of control character

(char 0D hex): X-Mailer: ...r (phpmailer.codeworxtech.com) [version 2.3]\r\n

Improper use of control character (char 0D hex): MIME-Version: 1.0\r\n

Improper use of control character (char 0D hex): Content-Type:

multipart/alternative;\r\n\tboundary="b1_[...]

 

---

 

To be honest I'd just hadn't gotten around to correcting the issue because the email was still attached.

 

After a quick look it became obvious that amavisd-new was flagging an error up and as such tagging a custom header to warn us of it.

 

after updating the version of phpmailer that whmcs users everything is working again and no more incorrect headers.

 

This isn't a whmcs error but a phpmailer one.

 

If you get the problem just update the files

 

<whmcs path>/includes/class.phpmailer.php

<whmcs path>/includes/class.smtp.php

 

with the latest version located http://phpmailer.worxware.com/index.php?pg=phpmailer

 

If this has been posted before then sorry I couldn't find it by searching.

 

Hope this helps.

 

p.s. if you find any spelling mistakes you can keep them, it's late and I'm tired.

Link to comment
Share on other sites

  • 1 month later...

Important!

 

This isn't a whmcs error but a phpmailer one.

 

If you get the problem just update the files

 

<whmcs path>/includes/class.phpmailer.php

<whmcs path>/includes/class.smtp.php

 

with the latest version located http://phpmailer.worxware.com/index.php?pg=phpmailer

You are right!

 

<whmcs path>/includes/class.phpmailer.php

PHPmailer v2.3 creates Emailheaders with blank lines.

for example Outlook 2000 doesnt like this ;)

 

-->

Update class.phpmailer.php to version 5.0.2.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated