Skip to content

Fatal error: Uncaught exception 'Swift_TransportException'

0

hI I moved my site to new server (new IP) and the service stoped working It says

Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host email-smtp.eu-west-1.amazonaws.com [ #0]' in /home/moshiac/public_html/smail/classes/Swift/Transport/StreamBuffer.php:265 Stack trace: #0 /home/moshiac/public_html/smail/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /home/moshiac/public_html/smail/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array) #2 /home/moshiac/public_html/smail/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /home/moshiac/public_html/smail/smail.php(54): Swift_Mailer->send(Object(Swift_Message)) #4 /home/moshiac/public_html/mistakes/mistakes.php(117): smail('***@gmail.co...', '\xD0\xA1\xD0\xBE\xD0\xBE\xD0\xB1\xD1\x89\xD0\xB5\xD0\xBD\xD0...', '\r\n ...', 'From: =?utf-8?B...') #5 {main} thrown in /home/moshiac/public_html/smail/classes/Swift/Transport/StreamBuffer.php on line 265

What should i do? Thanks

asked 2 years ago296 views
1 Answer
1
Accepted Answer

Hi

When your account is in the Amazon SES sandbox, you can send emails only to verified email addresses or to the mailbox simulator. If your account is in the sandbox, then confirm that you're sending emails to verified email addresses. You can also request to have your account moved out of the Amazon SES sandbox.

Please refer https://repost.aws/knowledge-center/ses-resolve-emails-not-delivered

If you are sending unverified email you need Production access to SES https://docs.aws.amazon.com/ses/latest/dg/request-production-access.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • Thanks But i only changed ip of my server.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.