Swiftmail电子邮件迟到了一个小时

时间:2014-03-18 20:58:15

标签: php swiftmailer

我在英国,今天刚将域名移到另一台服务器上。唯一的问题是,电子邮件似乎迟到了一个小时。

我正在使用SwiftMailer for PHP。我收到关于时区的错误:

Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/nudosush/public_html/pinfo.php on line 2

(这只是使用phpinfo();,我本以为会自我调整以防止警告)。

所以Swiftmail正在解决这个错误,并且为了防止我放置了这个:

if( ! ini_get('date.timezone') ) { date_default_timezone_set('Europe/London'); }

..在我的脚本的顶部。巴姆!没错。

但我抱怨订单电子邮件(它是一个电子商务网站,使用支付方式,卡公司通过后台脚本联系网站以告知成功的用户交易)正在到达迟到了一个小时。现在,我们位于英国,时区设置为UTC,_SERVER["REQUEST_TIME"]检出是正确的时间。

可能导致这种延迟的问题是什么?

0 个答案:

没有答案
相关问题