php - SMTP Timeout. Using our own server and swiftmailer. How can I increase the timeout? Error included -


i'm looping through list of customers, , sending files them. page times out. here exact error generated, minus domain name.

fatal error: uncaught exception 'swift_ioexception' message 'connection smtp.example.com:25 timed out' in c:\inetpub\wwwroot\inc\lib\classes\swift\transport\streambuffer.php:169 stack trace:  #0 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\abstractsmtptransport.php(400): swift_transport_streambuffer->readline(67) #1 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\abstractsmtptransport.php(277): swift_transport_abstractsmtptransport->_getfullresponse(67)  #2 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\esmtptransport.php(245): swift_transport_abstractsmtptransport->executecommand('??.??', array, array)  #3 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\abstractsmtptransport.php(335): swift_transport_esmtptransport->executecommand('??.??', array)  #4 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\abstractsmtptransport.php(428): swift_transport_abstractsmtptransport->_streammessage(object(swift_message))  #5 c:\inetpub\wwwroot\inc\lib\classes\swift\transport\abstractsmtptransport.php(444): swift_tra in c:\inetpub\wwwroot\inc\lib\classes\swift\transport\streambuffer.php on line 169  

i'm not sure if php timeout, or sort of smtp server timeout.

if php, can try increase timeout there. have tried adding set_time_limit (0); top of .php file, didn't help, should adding function first line?

i posted working solution (our!) problem on how close smtp connection in swiftmailer tell me if works well. cheers


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -