ben14 Posted March 9, 2006 Share Posted March 9, 2006 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.3Thanks, Link to comment https://forums.phpfreaks.com/topic/4494-mail-date-wrong/ Share on other sites More sharing options...
kenrbnsn Posted March 9, 2006 Share Posted March 9, 2006 Please post some code....Ken Link to comment https://forums.phpfreaks.com/topic/4494-mail-date-wrong/#findComment-15666 Share on other sites More sharing options...
ben14 Posted March 9, 2006 Author Share Posted March 9, 2006 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:[code]<?php$to = '[email protected]';$subject = 'the subject';$message = 'hello';$headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);?> [/code]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. Link to comment https://forums.phpfreaks.com/topic/4494-mail-date-wrong/#findComment-15673 Share on other sites More sharing options...
ben14 Posted March 10, 2006 Author Share Posted March 10, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/4494-mail-date-wrong/#findComment-15994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.