Originally Posted by
jaredovi
You can install magento SMTP module
http://www.magentocommerce.com/magen...mtp-email.html
But in easiest way, I believe you will like to edit code if you are developer. Let 's open this file
Code:
app/code/core/Mage/core/Model/Email/Template.php
Then edit the method
getMail() with this code
PHP Code:
public function getMail()
{
if (is_null($this->_mail)) {
$config = array(
'port' => 25,
'auth' => 'login',
'username' => '[email protected]',
'password' => 'yourpassword' );
$transport = new Zend_Mail_Transport_Smtp('your-smtp-host', $config);
Zend_Mail::setDefaultTransport($transport);
$this->_mail = new Zend_Mail('utf-8');
}
return $this->_mail;
}
Now enter your smtp credential into the code and check if it work.
Good luck!
The site return blank page after I edit the code in
Code:
app/code/core/Mage/core/Model/Email/Template.php
. Please help!!!
Bookmarks