Guest User

Untitled

a guest
Jul 20th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public function getMail()
  2. {
  3. if (is_null($this->_mail)) {
  4. /* changes begin */
  5. $my_smtp_host = Mage::getStoreConfig('system/smtp/host');
  6. $my_smtp_port = Mage::getStoreConfig('system/smtp/port');
  7. $config = array(
  8.  
  9. 'ssl' => 'tls',
  10. 'port' => $my_smtp_port,
  11. 'auth' => 'login',
  12. 'username' => 'noreply@gmail.com',
  13. 'password' => '***************'
  14. );
  15.  
  16. $transport = new Zend_Mail_Transport_Smtp($my_smtp_host, $config);
  17. Zend_Mail::setDefaultTransport($transport);
  18. /* Changes End */
  19. $this->_mail = new Zend_Mail('utf-8');
  20. }//die('abc');
  21. return $this->_mail;
  22. }
  23.  
  24. Zend_Mail_Protocol_Exception: Command not implemented
  25. in G:xampphtdocsmcardleslibZendMailProtocolAbstract.php:431
Add Comment
Please, Sign In to add comment