Prerequisites
(Click for details)
1. Set up AWS SES. Go to AWS SES Console and verify your domain or email:
1. Set up AWS SES. Go to AWS SES Console and verify your domain or email:
- Production
- Test & Dev
- Go to AWS SES Console > Verified Identities > Create Identity
- Choose “Domain” and follow DNS verification steps
- Add DKIM and SPF records to your domain’s DNS
2. Configure AWS Credentials:
2. Configure AWS Credentials:
a. Create an IAM user:
- Go to IAM Console > Users > Add User
- Enable “Programmatic access”
- Attach ‘AmazonSESFullAccess’ policy
- Method 1
- Method 2
Use AWS CLI:
3. Install required Python packages: (Click for details)
3. Install required Python packages: (Click for details)
4. Configure the user settings for email:
4. Configure the user settings for email:
sender_email: Your verified sender email addresssender_name: Display name that appears in email clientsregion_name: AWS region where SES is set up (e.g., ‘us-east-1’, ‘ap-south-1’)