[英]Magento not sending emails to yahoo accounts after registeration
我的magento网站有问题,我发现它同时向gmail和hotmail发送邮件,但不向yahoo发送邮件,控制页面的控制器是AccountController.php,它使用sendNewAccountEmail()函数,请为解决此问题提供帮助。
这是处理用户注册的代码
protected function _successProcessRegistration(Mage_Customer_Model_Customer $customer)
{
$session = $this->_getSession();
if ($customer->isConfirmationRequired()) {
/** @var $app Mage_Core_Model_App */
$app = $this->_getApp();
/** @var $store Mage_Core_Model_Store*/
$store = $app->getStore();
$customer->sendNewAccountEmail(
'confirmation',
$session->getBeforeAuthUrl(),
$store->getId()
);
$customerHelper = $this->_getHelper('customer');
$session->addSuccess($this->__('Account confirmation is required.
Please, check your email for the confirmation link.
To resend the confirmation email please <a href="%s">click here</a>.',
$customerHelper->getEmailConfirmationUrl($customer->getEmail())));
$url = $this->_getUrl('*/*/index', array('_secure' => true));
} else {
$session->setCustomerAsLoggedIn($customer);
$session->renewSession();
$url = $this->_welcomeCustomer($customer);
}
$this->_redirectSuccess($url);
return $this;
}
谢谢。
这很可能不是代码问题,也可能是电子邮件传递问题。 您是否通过自己的服务器发送这些电子邮件? 如果是这样,可能需要确保某些地方到位。
查看有关Yahoo!的帖子。 邮件传递问题,可能与您的问题有关: http : //marketingland.com/email-senders-stymied-yahoo-mail-79442
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.