Is there an option in AWS to deliberately delay sending an email? I mean is it possible to say AWS to send this email after 5 or 10 or 30 minutes when we call the AmazonSimpleEmailService library?
CodePudding user response:
ideally NO !!!
Amazon SES attempts to deliver emails to the Internet within a few seconds of each request.
code in lambda can be delayed using any of the time based libraries but the problem is when to invoke lambda or what will invoke lambda.For this , you can use sqs with lambda.
- send the request to sqs queue
- you will know when request has come. this will act as a
- execute lambda after your desire time
source faq