0

I Have Big-Rock server on Linux Hosting, and server provides : Host and Port but Magento default smtp provides windows server setting. so that's why magento not able to send mail ??

7
  • check your servers mail settings and log
    – MagenX
    Nov 18 '17 at 10:11
  • log error: exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail'
    – H_Parekh
    Nov 20 '17 at 4:34
  • I am write host:mail.domain.com and host:25
    – H_Parekh
    Nov 20 '17 at 4:35
  • and also copy app/code/core/Mage/core/Model/Email/Template.php. this file and paste in local folder. and change getMail function
    – H_Parekh
    Nov 20 '17 at 4:37
  • $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' => 'user@domain.com', 'password' => 'password' ); $transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config); Zend_Mail::setDefaultTransport($transport);
    – H_Parekh
    Nov 20 '17 at 4:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.