[magento2]magento 无法发送email邮件问题解决办法

时间:2018-11-25  来源:magento  阅读:

问题一,magento 本身自带的邮件发送,有些邮件无法发送,安装了ASchroder_SMTPPro插件后,只能

使用gmail的服务器,原因在于插件问题

app/code/community/Aschroder/SMTPPro/controllers

IndexController.php 90行

 代码如下 $mail->addTo($to)
->setFrom(“veric@nieger.com”)
->setSubject($sub)
->setBodyText($body);

改成自己的邮箱服务器 ,原来的是 开发者 的gmail

magento smtp

 

问题二,magento 无法发送email邮件,安装ASchroder_SMTPPro-1.4.3  smtp后出现较多问题

1.sendfriend 无法发送邮件,原因在于 更改为smtp后,无法获取发送者,解决办法

app/code/core/Mage/Sendfriend/Model Sendfriend.php

 代码如下

/*
$sender = array(
"name" => $this->_getHelper()->htmlEscape($this->getSender()->getName()),
"email" => $this->_getHelper()->htmlEscape($this->getSender()->getEmail())
);
*/
/*Veric@dev */
$sender = array(
"name" => Mage::getStoreConfig("general/store_information/name"),
"email" => Mage::getStoreConfig("trans_email/ident_general/email")
);

2.邀请朋友无法发送邮件app/code/community/Rewardpoints/Model

Referral.php

 代码如下

/*
$sender = array(
"name" => strip_tags($parent->getFirstname()." ".$parent->getLastname()),
"email" => strip_tags($parent->getEmail())
);
*/
$sender = array(
"name" => Mage::getStoreConfig("general/store_information/name"),
"email" => Mage::getStoreConfig("trans_email/ident_general/email")
);

重写获取即可。

[magento2]magento 无法发送email邮件问题解决办法

http://m.bbyears.com/wangyezhizuo/46071.html

推荐访问:magento如何注销重新登录 magento官网 magento2安装 magento2的sql语句在哪里 magento2的优化 magento2中怎么使用自带的弹框 magento付款完的url magento模板安装教程 magento模板更换
相关阅读 猜你喜欢
本类排行 本类最新