![]() ![]() Set $mail->SMTPDebug = 3 so that it will show what's happening when you try to connect. I suggest starting again - get the latest version of PHPMailer, use one of the examples provided, modify it to match your own server. There are many reasons why this might happen. Connection: opening to :25, timeout=300, options=array ( )SMTP ERROR: Failed to connect to server: Connection timed out (110)SMTP connect() And this must be before the password and everyting else that can go wrong I suppose? The error means that your script cannot connect to your SMTP server. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Connection: opening to :25, timeout=300, options=array ( )SMTP ERROR: Failed to connect to server: Connection timed out (110)SMTP connect() And this must be before the password and everyting else that can go wrong I suppose?. ![]() When it says "network is unreachable", it means it can't reach your network for sending via SMTP. It looks like your ISP blocks you from using outbound SMTP, which is exactly what the guide says. I use gmail smtp SMTP connect() failed https GitHub com PHPMailer/PHPMailer wiki troubleshooting PHPMailer sometimes send mails sometimes not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |