我有一個簡單的電子郵件發件人用於激活用戶帳戶。根據我使用的電子郵件地址,我得到的響應時間顯着不同:大學電子郵件 - 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