Jump to content


Photo

Mail date wrong


  • Please log in to reply
3 replies to this topic

#1 ben14

ben14
  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationPerth, Western Australia

Posted 09 March 2006 - 02:58 AM

Hey,

Every time a mail has been sent from my computer the date in the email is 1/1/970 at 8am, so i am wondering if anyone knows how to fix the problem (somewhere in the php.ini or even in mail headers?).

My php ver is 4.4.3

Thanks,

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 09 March 2006 - 04:40 AM

Please post some code....

Ken

#3 ben14

ben14
  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationPerth, Western Australia

Posted 09 March 2006 - 04:57 AM

Does it when ever i use the mail function.

I have a mail class that i use (and that is not causing the problem because ive tested it on another server and works perfect) and i have also tried:

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
   'Reply-To: webmaster@example.com' . "\r\n" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

from the php site, and messed around with it and still doesn't work. I have a felling its got something to do with a setting in php.ini or in apache.

#4 ben14

ben14
  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationPerth, Western Australia

Posted 10 March 2006 - 01:22 AM

anyone?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users