Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ranx99's avatar

Error: SSL operation failed with code 1. OpenSSL Error

Hey,

I have a website in forge which I have installed a LetsEncrypt Certificate for it.

When ever I try to send an email with AWS SES this error happen:

production.ERROR: Connection could not be established with host email-smtp.eu-west-3.amazonaws.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:

And these are my settings:

MAIL_MAILER=smtp
MAIL_HOST=email-smtp.eu-west-3.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=my-secret
MAIL_PASSWORD=my-secret
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"

Whats hapnning?

0 likes
1 reply
Ranx99's avatar

never mind, switched to mailgun

Please or to participate in this conversation.