Sunday, July 8, 2012

contact us email settings on magento..

system/configuration/contacts/ --------- contactus and email options
system/configuration/system/ ----------- mail sending settings
app/code/core/mage/core/model/email/template.php

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, //optional - default 25 'auth' => 'login', 'username' => 'test@sankhalainfo.co.in', 'password' => 'info#1234' ); $transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config); Zend_Mail::setDefaultTransport($transport); /*End Hack*/ $this->_mail = new Zend_Mail('utf-8'); } return $this->_mail; }

No comments:

Post a Comment

Please mention your comments.......