egs Posted August 7, 2009 Share Posted August 7, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted September 18, 2009 Share Posted September 18, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.