List:Eventum General Discussion« Previous MessageNext Message »
From:Devananda Date:September 20 2004 7:15pm
Subject:[ FIX ] Date header
View as plain text  
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
        ));    
Thread
error when using MozillaDevananda17 Sep
  • RE: error when using MozillaJoao Prado Maia17 Sep
    • Re: error when using Mozilla [ now date problems ]Devananda17 Sep
      • Re: error when using Mozilla [ now date problems ]Devananda17 Sep
        • [ FIX ] Date headerDevananda20 Sep
          • RE: [ FIX ] Date headerJoao Prado Maia22 Sep