Our site is hosted on Godaddy linux dedicated virtual hosting server. Site is run on PHP. All the emails sent from within the code are showing up in the email box as sent 7 hours before.
I tried setting "date" header in the mail function but that didn't help. In SMTP setting in PHP.ini it says localhost. Server time is set correctly and hence I just cannot find where to change that.
Maybe I am thinking we will migrate our emails to Google apps. Can Google apps settings be used as SMTP to send emails from a Godaddy server for example?
Thanks for any response.
Try this to see:
echo date();
See what you get on that.
It might be related with the timezone in php.ini. Set it to where you are at.
If you can't find the setting in Php.Ini you might want to try setting the time zone using http://php.net/manual/en/function.date-default-timezone-set.php on the mail script
On tope of your page put date_default_timezone_set('Asia/Calcutta');
and try