Php Zend_Mail_Transport_SMTP引发致命错误
我使用以下代码发送电子邮件使用戈达迪SMTPPhp Zend_Mail_Transport_SMTP引发致命错误,php,email,zend-framework,smtp,Php,Email,Zend Framework,Smtp,我使用以下代码发送电子邮件使用戈达迪SMTP $config = array('auth' => 'login', 'username' => 'user@mydowmain.com', 'password' => 'mypass'); $transport = new Zend_Mail_Transport_Smtp('smtpout.secureserver.net', $config); $mail = new Zend_Mail('UTF-8');
$config = array('auth' => 'login', 'username' => 'user@mydowmain.com', 'password' => 'mypass');
$transport = new Zend_Mail_Transport_Smtp('smtpout.secureserver.net', $config);
$mail = new Zend_Mail('UTF-8');
$mail->setBodyText('This is the text of the mail again.');
$mail->setFrom('user@mydowmain.com', 'User');
$mail->addTo('me@domain.com', 'Me');
$mail->setSubject('This is mail test again');
$mail->send($transport);
电子邮件有效。我可以在收件箱中看到电子邮件。但在页面上,它抛出了一个致命错误
Fatal error: Exception thrown without a stack frame in Unknown on line 0
我找不到它。我们将非常感谢您在这方面提供的任何帮助。
谢谢您能发布完整的代码吗?(引导代码、自动加载程序等)