![]() |
Is there a trick to sending mail with AWS? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Is there a trick to sending mail with AWS? (/showthread.php?tid=87934) |
Is there a trick to sending mail with AWS? - cx3700 - 06-22-2023 I am using an AWS LightSail server. My domain is verified in SES using the CNAME records provided. I am trying to send a simple test email like this: $email = \Config\Services::email(); $email->setFrom('[email protected]', 'My Domain'); $email->setTo('[email protected]'); $email->setSubject('Email Test'); $email->setMessage('Testing the email class.'); $email->send(); $data = $email->printDebugger(['headers']); print_r($data); There are no errors, $data is empty, and if I use: if ($email->send) {} it says it was sent. I am trying to use the built in email from Plesk, which is on and the sending account exists. |