Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Zend_Mail_Transport_SMTP引发致命错误_Php_Email_Zend Framework_Smtp - Fatal编程技术网

Php Zend_Mail_Transport_SMTP引发致命错误

Php 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');

我使用以下代码发送电子邮件使用戈达迪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');
  $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
我找不到它。我们将非常感谢您在这方面提供的任何帮助。
谢谢

您能发布完整的代码吗?(引导代码、自动加载程序等)