我有一个简单的电子邮件发件人用于激活用户帐户。根据我使用的电子邮件地址,我得到的响应时间显着不同:大学电子邮件 - 1分钟,Gmail - 3-4小时,雅虎 - 1或2天 - 这看起来很奇怪。有没有人看过这种现象?cakephp激活电子邮件发送缓慢
编辑:
有没有(即使是奖金)很多反应,但我会试着更清楚地解释我的问题。
这可能不greylsting - 如果我这么一个简单的:
php mail ($to, $subject, $body) // this delivers instantly.
我的CakePHP代码:
function __sendActivationEmail($id) {
$User = $this->User->read (null, $id);
$this->set ('suffix_url', $User ['User'] ['id'] . '/' . $this->User->getActivationHash());
$this->set ('username', $User ['User'] ['username']);
$this->Email->to = $User ['User'] ['email'];
$this->Email->subject = 'Test.com - ' . __ ('please confirm your email address', true);
$this->Email->from = '[email protected]';
$this->Email->template = 'user_confirm';
$this->Email->sendAs = 'text';
$this->Email->delivery = 'mail';
$this->Email->send();
}
导致延迟13分钟(好吧,我们会处理与它)到5-6小时(不太好,因为这是一封激活邮件)。对于我的一些用户来说,它可以立即运行,但对于其他用户(同一服务提供商,即Gmail,它会看到这些延迟)。
任何线索?
只是好奇 - 有人upvoted这篇文章...人们有类似的问题吗? – Dirk 2010-01-26 04:26:33
是啊...我就是其中之一 – assaqqaf 2010-01-28 12:00:17
我也是 - gmail 8个小时左右!在dreamhost上。 – 2011-09-19 08:58:21