phpJoeMo Posted May 19, 2011 Share Posted May 19, 2011 Sometimes I wonder why I stay with Godaddy ?????!!! Anyway, here is the script that I currently have: require 'Zend/Mail.php'; require 'Zend/Mail/Transport/Smtp.php'; $config = array('plain' => 'login', 'name' => 'name', 'username' => 'myuser', 'password' => 'mypass', 'port' => 80); $transport = new Zend_Mail_Transport_Smtp('smtpout.secureserver.net', $config); Zend_Mail::setDefaultTransport($transport); $mail = new Zend_Mail(); $mail->setBodyText('This is the text of the mail.'); $mail->setFrom('myemail', 'myname'); $mail->addTo('to@example.com', 'name'); $mail->setSubject('TestSubject'); $mail->send($transport); now obviously I'm replacing values like 'myname' etc with the correct ones. Here's my question, why am I getting the following error msg: Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'Could not read from smtpout.secureserver.net' in /my/path/Zend/Mail/Protocol/Abstract.php:385 Stack trace: #0 /my/path/Zend/Mail/Protocol/Abstract.php(415): Zend_Mail_Protocol_Abstract->_receive(300) #1 /my/path/Zend/Mail/Protocol/Smtp.php(199): Zend_Mail_Protocol_Abstract->_expect(220, 300) #2 /my/path/Zend/Mail/Transport/Smtp.php(200): Zend_Mail_Protocol_Smtp->helo('biztoolplace') #3 /my/path/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail() #4 /my/path/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) #5 /my/path/mail.php(19): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp)) #6 {main} thrown in /my/path/Zend/Mail/Protocol/Abstract.php on line 385 Quote Link to comment https://forums.phpfreaks.com/topic/236907-zend_mail-errors-godaddy-smtp/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.