This guide reflects the Classic Console (V1) for Amazon SES. For information about the New Console (V2) for Amazon SES, see the new Amazon Simple Email Service Developer Guide.
Send an email by accessing the Amazon SES SMTP interface programmatically
You can access the Amazon SES SMTP interface by using an SMTP-enabled programming language. You provide the Amazon SES SMTP hostname and port number along with your SMTP credentials and then use the programming language's generic SMTP functions to send the email.
Amazon Elastic Compute Cloud (Amazon EC2) restricts email traffic over port 25 by
default. To avoid
timeouts when sending email through the SMTP endpoint from Amazon EC2, you can request
that these restrictions be removed. For more information, see How
do I remove the restriction on port 25 from my Amazon EC2 instance or AWS Lambda
function?
The code examples in this section use port 587 to avoid this issue.
Topics in this section: