What is the trick to get SMTP to work on AWS SES? |
My code:
$email = \Config\Services::email(); $email->protocol = 'smtp'; $email->SMTPCrypto = 'tsl'; $email->SMTPHost = 'email-smtp.us-west-2.amazonaws.com'; $email->SMTPUser = 'xxxx'; $email->SMTPPass = xxxx'; $email->SMTPPort = 587; $email->newline = "\r\n"; $email->setFrom('[email protected]', 'Company Name'); $email->setTo('[email protected]'); $email->setSubject('Email Test'); $email->setMessage('Testing the email class.'); $email->send(false); echo $email->printDebugger(); The response: Unable to send email using SMTP. Your server might not be configured to send mail using this method. The email address I am sending from exists on the server, which is setup through Plesk. |
Messages In This Thread |
What is the trick to get SMTP to work on AWS SES? - by cx3700 - 07-15-2023, 05:59 PM
RE: What is the trick to get SMTP to work on AWS SES? - by kenjis - 07-16-2023, 12:21 AM
RE: What is the trick to get SMTP to work on AWS SES? - by cx3700 - 07-16-2023, 08:22 AM
RE: What is the trick to get SMTP to work on AWS SES? - by secretivetwice - 11-26-2023, 07:59 PM
RE: What is the trick to get SMTP to work on AWS SES? - by zee - 11-26-2023, 09:21 PM
|