Configure Postfix to use Amazon SES

Install postfix with

Update postfix config with

Edit

Add to end of the file

In the above, replace SMTP_SERVER_NAME with your Amazon SES mail server, for example “email-smtp.us-east-1.amazonaws.com”, you can see it in your Amazon SES console. Run

Replace SMTP_SERVER_NAME, SMTP_USERNAME and SMTP_PASSWORD with your actual credentials. Now run

[…]

Read More…

Sending Emails from PHP using Amazon SES

To create a PHP script to sent email using Amazon SES, create a folder

Install phpMailer using composer

Create a PHP file with following content

Now test it by running

[…]

Read More…