记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

You will think about Magento SMTP Email Setup for custom SMTP credential when you meet the problem with your customer complain about spam box.

It is not easy to have a hosting/server where you host your site and their IP is clean and trust enough to send to Inbox of your customers.

With ecommerce website, it ‘s important to make your customers trust your service so I will show you how to solve this problem easy.

Basically, we have 2 options to use custom SMTP in magento:

1. Customize magento coding

This way, you can make sure your site performance is still fast without any extension installation.

Let ‘s do these steps:

– Copy file app/code/core/Mage/core/Model/Email/Template.php to your local folder

– Edit the getMail() function like this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public function getMail()
{
if (is_null($this->_mail)) {
$my_smtp_host = Mage::getStoreConfig('system/smtp/host');
$my_smtp_port = Mage::getStoreConfig('system/smtp/port');
$config = array(
'port' => $my_smtp_port, 'auth' => 'login',
'username' => 'email@domain.com',
'password' => 'yourpassword' );
$transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config);
Zend_Mail::setDefaultTransport($transport);
$this->_mail = new Zend_Mail('utf-8');
}
return $this->_mail;
}

You just need to edit the code to use your SMTP credential then you can enjoy the new functionality.

2. Install and configure magento SMTP extension

This is a easiest way for all of us, you just need to install one of these extension

http://www.magentocommerce.com/magento-connect/smtp-pro-email-free-custom-smtp-email.html

http://www.magentocommerce.com/magento-connect/advanced-smtp-artson-it.html

Just need to remember to logout and login again after you install these extension then I believe you know how to configure it.



转载请标明出处【Magento SMTP Email Setup/邮件订阅信息配置】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论