You brightened my day with innocent narration :)Great tutorial, I am a lone freelancer with no team and no experience with aws much. so this video helps alot, thanks alot !!!!
😄 Even the best stumble sometimes, right? I appreciate your understanding and I'm glad you enjoyed the tutorial! If there's anything else you'd like to see or if you have questions, feel free to reach out. Thanks for watching and your positive feedback!
Hey thanks for this. Im using Nextjs and supabase and im now requiring to use a smtp, for sending sign up and reset emails only, so what do you think is the best way to do about this? Nodemailer + Amazon SES? or can I just use nodemailer or aws ses alone? I'm confused.
Hi, I am having issues sending this mail on live server, It works on local but when I deploy it on AWS it tells me "InvalidClientTokenId: The security token included in the request is invalid"
Hi, when you are in sandbox, AWS requires both sender and receiver mail addresses to be verified If you don't want to verify to address mail then you should move out of the sandbox and get a production access
well explained thanks alot man! do upload one where we can send OTP using aws-ses would be grateful if you do it using express or fastify, Thanks again
I'm glad you found the explanation helpful! Thanks for the suggestion, It was already on my list but I was having issues regarding the messages reaching out to my mobile due to mobile network operator, from the Amazon SNS service it was going all well, But I'll definitely consider creating a video on this, Stay tuned for more content, and thanks again for your support!
Good question brother When you are in the Amazon SES sandbox, you'll definitely verify your mail address because verifying mail identity is mandatory and you can send mail to the verified identities only. So if not verified you will get an error from Amazon SES service and in our code it will be caught by the try-catch block. In the case of production i.e. moving out of the sandbox - If you send an email to a non-existent or incorrect recipient email address, Amazon SES (Simple Email Service) will still process the request and return a response indicating that the email was successfully accepted for delivery. This is because SES doesn't verify the validity of the recipient's email address at the time of sending; it's responsible for relaying the email to the recipient's mail server. The response you receive from Amazon SES in case of sending to a non-existent or incorrect email address might look something like this: { ResponseMetadata: { RequestId: "abcd-efgh-ijkl" }, MessageId: "012345678901" } In this response: - ResponseMetadata: Contains metadata about the request, including a `RequestId` that uniquely identifies the request. - MessageId: Represents the unique identifier assigned by Amazon SES to the email message that you sent. Keep in mind that this response doesn't indicate the success or failure of the final delivery to the recipient's inbox. It only confirms that SES accepted the message for processing. The actual delivery status (bounce, delivery, etc.) will depend on the recipient's mail server and other factors. You might want to set up mechanisms to handle email bounces and monitor the status of sent emails for a more comprehensive view of the email delivery process.
@@PankajKumar-gz1mt Well to handle bounces & complaints you have to setup Amazon SNS Bounces occur when an email cannot be delivered to the recipient. Amazon SES provides mechanisms to receive bounce notifications. You can set up Amazon SNS (Simple Notification Service) to receive bounce notifications. When you receive a bounce notification, you can mark the recipient's email as invalid or inactive in your system and take appropriate actions based on your business logic. I'd recommend to watch this video to get idea about handling bounces and complaints - th-cam.com/video/n3Fr0bCsIvo/w-d-xo.html
Thank you for taking time to comment, to address your query I'd recommend to use Nodemailer with SES transporter I've made a tutorial on this, please find here - th-cam.com/video/ftgK6EbAhyo/w-d-xo.html I hope this resolves your query and consider subscribing to the channel!
Promise { } promise will log pending as long as its results are not resolved yet. You must call .then or use await on the promise to capture the results regardless of the promise state (resolved or still pending) In the video, I've used async-await approach, Could check if you forgot to add await in front of send function call?
You brightened my day with innocent narration :)Great tutorial, I am a lone freelancer with no team and no experience with aws much. so this video helps alot, thanks alot !!!!
Excellent presentation... you covered all the bases in 24 minutes... Thank you
Good stuff, man. Needed an overview and you really provided that and more
i was creating a newsletter app this was so useful.
Good tutorial - made it simple to get started! Thanks.
@16:42 It happens, even to the best and most experienced of us ;-) . Thanks for a great tutorial!
😄 Even the best stumble sometimes, right? I appreciate your understanding and I'm glad you enjoyed the tutorial! If there's anything else you'd like to see or if you have questions, feel free to reach out. Thanks for watching and your positive feedback!
Great video!
Thanks buddy it was Really helpful
Thanks a lot 🙌
Thanks man, This works for me.
Thanks
Thanks .it was very helpful
Most welcome! Consider subscribing to the channel for more content!
thanks bro it worked!
You're welcome!
How to get email status like opened, clicked from AWS and save them in database against each sent email
Developer Guide for SDK Version 3 - docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/javascript_ses_code_examples.html
Modular packages in AWS SDK for JavaScript - aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/
AWS Management Console - aws.amazon.com/console/
Amazon SES - aws.amazon.com/ses/
GitHub Repo - github.com/kalyansaxena/nodejs-aws-ses-tutorial
Checkout this playlist - th-cam.com/play/PL72qLZfXkeBRseVthAcq2__EPmGoXIL2D.html
Hey thanks for this. Im using Nextjs and supabase and im now requiring to use a smtp, for sending sign up and reset emails only, so what do you think is the best way to do about this? Nodemailer + Amazon SES? or can I just use nodemailer or aws ses alone? I'm confused.
Email address is not verified. The following identities failed the check in region AP-SOUTH-1
facing an error ses_Client.send is not a constructor
this wont work now aws made email and domain both manditory
Hi, I am having issues sending this mail on live server, It works on local but when I deploy it on AWS it tells me "InvalidClientTokenId: The security token included in the request is invalid"
Can you try generating new credentials for the same user and use the same ?
@@webwizard8 It still doesn't work after deploying to AWS, It works on local though
how to send direct email.i dont want to end verification email so what can i do
Hi, when you are in sandbox, AWS requires both sender and receiver mail addresses to be verified
If you don't want to verify to address mail then you should move out of the sandbox and get a production access
how to send bulk email?
well explained thanks alot man! do upload one where we can send OTP using aws-ses would be grateful if you do it using express or fastify, Thanks again
I'm glad you found the explanation helpful! Thanks for the suggestion, It was already on my list but I was having issues regarding the messages reaching out to my mobile due to mobile network operator, from the Amazon SNS service it was going all well, But I'll definitely consider creating a video on this, Stay tuned for more content, and thanks again for your support!
Hi bro if i send mail id wrong then what response will i get from it.
Good question brother
When you are in the Amazon SES sandbox, you'll definitely verify your mail address because verifying mail identity is mandatory and you can send mail to the verified identities only.
So if not verified you will get an error from Amazon SES service and in our code it will be caught by the try-catch block.
In the case of production i.e. moving out of the sandbox -
If you send an email to a non-existent or incorrect recipient email address, Amazon SES (Simple Email Service) will still process the request and return a response indicating that the email was successfully accepted for delivery. This is because SES doesn't verify the validity of the recipient's email address at the time of sending; it's responsible for relaying the email to the recipient's mail server.
The response you receive from Amazon SES in case of sending to a non-existent or incorrect email address might look something like this:
{
ResponseMetadata: {
RequestId: "abcd-efgh-ijkl"
},
MessageId: "012345678901"
}
In this response:
- ResponseMetadata: Contains metadata about the request, including a `RequestId` that uniquely identifies the request.
- MessageId: Represents the unique identifier assigned by Amazon SES to the email message that you sent.
Keep in mind that this response doesn't indicate the success or failure of the final delivery to the recipient's inbox. It only confirms that SES accepted the message for processing. The actual delivery status (bounce, delivery, etc.) will depend on the recipient's mail server and other factors. You might want to set up mechanisms to handle email bounces and monitor the status of sent emails for a more comprehensive view of the email delivery process.
@@webwizard8 that's wonderful answer but how to do set up and how can check from coding side. If mail is not sent. Thank you for your answer.
@@PankajKumar-gz1mt
Well to handle bounces & complaints you have to setup Amazon SNS
Bounces occur when an email cannot be delivered to the recipient. Amazon SES provides mechanisms to receive bounce notifications. You can set up Amazon SNS (Simple Notification Service) to receive bounce notifications. When you receive a bounce notification, you can mark the recipient's email as invalid or inactive in your system and take appropriate actions based on your business logic.
I'd recommend to watch this video to get idea about handling bounces and complaints - th-cam.com/video/n3Fr0bCsIvo/w-d-xo.html
Thanks
How do i attached a pdf file
Thank you for taking time to comment, to address your query I'd recommend to use Nodemailer with SES transporter
I've made a tutorial on this, please find here - th-cam.com/video/ftgK6EbAhyo/w-d-xo.html
I hope this resolves your query and consider subscribing to the channel!
Promise { } What that meaning?
with v3 the message is promise { false }
Promise { }
promise will log pending as long as its results are not resolved yet. You must call .then or use await on the promise to capture the results regardless of the promise state (resolved or still pending)
In the video, I've used async-await approach, Could check if you forgot to add await in front of send function call?