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, Quote 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 Quote 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 = '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);?> [/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. Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/4494-mail-date-wrong/#findComment-15994 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.