Welcome Guest, Not a member yet? Register   Sign In
Email date wierdness with SMTPSVC
#1

[eluser]Chee Wai[/eluser]
running on win2003, tried sending out emails with the email class.

It does get sent out, but was rated as spam due to the invalid date headers:

Quote:Date: Fri, 23 May 2008 23:16:04 t0800

Notice the 't' instead of a normal '+'
looked a little bit like iso format, but i'm not sure.

Anyone know what i can do to the server to setup the date correctly?
#2

[eluser]Chee Wai[/eluser]
[RESOLVED]

On platform win server 2003 (virtual smtp) and PHP 4.4.8, the default date header inserted into PHP mail calls includes the 't'.

To circumvent this in CI, always initialize the Email class before using. If there is no config to change, simply pass an empty array:

$this->email->initialize(array());

This is because the email class will not regenerate the date header unless initialized. The _set_date function in CI correctly formats the date to be used in PHP mail.




Theme © iAndrew 2016 - Forum software by © MyBB