For what ever reason, no Date headers were being sent in the emails that
Eventum was sending out. I added the following lines to
include/class.mail.php and it works fine now. Even when looking in mysql
at the mail_queue table, there was no Date: in the maq_headers field.
There is now :)
> 511
$date = MIME_Helper::encode(date('D, j M Y H:i:s O'));
> 517
'Date' => $date,
the send function now starts like this:
function send($from, $to, $subject, $save_email_copy = 0, $issue_id
= false)
{
// encode the addresses
$from = MIME_Helper::encodeAddress($from);
$to = MIME_Helper::encodeAddress($to);
$subject = MIME_Helper::encode($subject);
> $date = MIME_Helper::encode(date('D, j M Y H:i:s O'));
$body = $this->mime->get();
$this->setHeaders(array(
'From' => $from,
'To' => Mail_API::fixAddressQuoting($to),
> 'Date' => $date,
'Subject' => $subject
));