From the course: AWS for Developers: Simple Email Service (SES)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Lambda for SES to a MySQL database

Lambda for SES to a MySQL database - Amazon Web Services (AWS) Tutorial

From the course: AWS for Developers: Simple Email Service (SES)

Start my 1-month free trial

Lambda for SES to a MySQL database

- Now that we have a Lambda function that is triggered every time we get a bounce or a complaint notification, let's expand our Lambda function to automatically take the email addresses in the notification and remove it from our email list. The Lambda function will connect to our WordPress database and automatically remove the email address from our newsletter mailing list, but you could use this same function to write to the database of your custom application or log these email addresses into another database for further processing, or, if you're using a third-party service for your mailing list, you could call their API and automatically remove this email address. The sky's the limit. I've already packaged up the Lambda function for you, and it's included with this video. Download the included .zip file. Open the Lambda console. Click on the ses-remove-emails header, and here in the code editor, where it says Code entry type, click the pull-down, and click Upload a .zip file. Click…

Contents