PDA

View Full Version : SMTP problem



Peter Jonsson
July 6, 2020, 06:04 PM
2020-07-06 18:03:00 Connection: opening to ssl://smtp-relay.gmail.com:587, timeout=300, options=array()

2020-07-06 18:03:00 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1408F10B:SSL routines:ssl3_get_record:wrong version number [/home/miztra/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 336]

2020-07-06 18:03:00 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/miztra/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 336]

2020-07-06 18:03:00 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp-relay.gmail.com:587 (Unknown error) [/home/miztra/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 336]

2020-07-06 18:03:00 SMTP ERROR: Failed to connect to server: (0)

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Rudi
July 6, 2020, 08:04 PM
Hello,

It seems that your server doesn't allow to use ssl port

contact your hosting and ask what could be the problem

Peter Jonsson
July 7, 2020, 05:38 AM
They have blocked port 25.

I have been googling and I have changed my exim to p

Peter Jonsson
July 7, 2020, 03:40 PM
Got it working with Mailgun :)