Added logic for sending emails and SMS notifications via SES and SNS.