简体   繁体   中英

Send email to new sign user using AWS sns with lambda function

I am working on one project with AWS lambda function, DynamoDB, serverless architecture with the node.js runtime environment.

Now thing is that I want to send an email when a new user signup in my system for email address confirmation.

First, I tried with SES(SMTP credentials) and nodemailer module. When we try to send an email using SES then we need to verify both the email addresses( From and TO ). But thing is that suppose I verify my From email address but the new signup user has a new email address, so, this when I try to send an email to the new signup user's email address then it through error like email address not verified.

So, i want to know that if I want to send an email to this new signup user how can I send the email confirmation mail?

Can I use SNS with AWS lambda and serverless architecture?

Thanks in advance for the help.

I'm suspecting your Amazon SES is still in sandbox mode . As long as you are in sandbox mode, you can only do the following things:

  • You can only send mail to verified email addresses and domains, or to the Amazon SES mailbox simulator.

  • You can send a maximum of 200 messages per 24-hour period.

  • You can send a maximum of 1 message per second.

To get yourself removed out of sandbox mode, you need to open a SES Sending Limits Increase case to the AWS Support center.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM