Keywords: General - AWS - Technical issue - Other
bnsupport ID: c6a33a3a-8666-0d57-2b6f-13570b9bd53a
Description:
I send a small number of notification emails from a php (CakePHP) application running on Lightsail. It has been working without issues (except that emails take a long time to arrive; unsure if related) for several months.
Recently emails (to all recipients) stopped arriving, without any changes to the code responsible for sending emails. I am not seeing any errors in the application log. I don't know if/where there is a dedicated email error log I can access.
The number of emails sent is only a handful per day maximum at the moment, not enough to hit any limits.
I wrote a small test case (below). It runs without issues but the emails never arrive.
$message = "Testing";
try {
$email = new Email('default');
$email->from($fromAddress)
->to($toAddress)
->subject('Testing')
->send($message);
} catch (\Exception $e) {
error_log('Failed to send email: '.print_r($e, true));
}