Skip to content

w3develops/aws-ses-newsletter-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

The Plan: Run a Local Node.js Script Since you know Next.js and TypeScript, this will be easy for you. We will read your CSV and send the emails using the AWS SDK.

Step 1: Get your AWS Credentials Log in to the AWS Console. Search for IAM and go to Users. Create a User (e.g., mailer-script) and attach the permission policy: AmazonSESFullAccess. Go to the Security Credentials tab for that user and create an Access Key. Copy the Access Key ID and Secret Access Key.

Step 2: Verify your "From" Address Go to the Amazon SES console. Click Identities (or Verified Identities). Ensure [email protected] is in the list and status is Verified. If not: Click Create Identity -> Email Address -> Enter [email protected]. Go to your Namecheap Private Email inbox, find the AWS verification email, and click the link.

Step 3: The Script Create a folder on your computer, drop your CSV file in there (name it emails.csv), and create a file named send.js.

install dependencies: Bash "npm install aws-sdk csv-parser"

Change your: accessKeyId: 'YOUR_ACCESS_KEY_HERE', // Paste from Step 1 secretAccessKey: 'YOUR_SECRET_KEY_HERE', // Paste from Step 1

Step 4: Run it Bash "node send.js"

About

The python script i used to send out the emails via AWS SES.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published