I\'ve started an EC2 instance and installed the ec2-api-tools. Environment variables (JAVA_HOME,开发者_运维知识库 EC2_PRIVATE_KEY, EC2_CERT) are set up.
I use a function that sends emails to some users. I use the following code to send delivery notification failure messages to the sender email