简体   繁体   中英

zend_smtp and php warning about stream_set_timeout

I use Zend_Smtp to send notifications to users. It worked well. But yerstaday and today I had a lot of errors in error_log like this:

[21-Aug-2012 10:37:44] PHP Warning:  stream_set_timeout():
supplied argument is not a valid stream resource in
library/Zend/Mail/Protocol/Abstract.php on line 445

And the email is not sent. What can be the reason of this? Thanks.

According to the PHP doc : http://php.net/manual/en/function.stream-set-timeout.php , I think your application cannot access the email server(the stream).

You can watch about :

  • Update on the server (change the communication with email)
  • Firewall or authentification (if you use a remote connection)

But, if you can provide more information about your configuration and implementation...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM