Complete Guide: Sending Emails in Node.js with Amazon SES and Gmail | Step-by-Step Tutorial

  Рет қаралды 15,705

Web Wizard

Web Wizard

Жыл бұрын

Hey KZfaq! In this video, we will learn how to send emails in Node.js using Amazon SES, a cloud email service provider.
You will learn:
➤ Amazon SES example using SDK for JavaScript (v2)
➤ Amazon SES example using SDK for JavaScript (v3)
➤ Create an SES template from the node js application
➤ Send email using the SES template
➤ Support me by COMMENT, LIKE, SUBSCRIBE, and SHARE
➤ Channel link - / @webwizard8
If you find the video helpful, do support by liking & subscribe as it helps me to motivate and bring many more videos!
Happy learning!
#amazonses #email #gmail #amazonservice #sendingemails #nodejs #amazonSES #gmail #emailtutorial #stepbysteptutorial #nodejstutorial #emaildevelopment #emailautomation #emailsender #amazonSESintegration #gmailintegration #emailservice #emailAPI #sendingemailstutorial

Пікірлер: 35
@progressnwimuelekara2167
@progressnwimuelekara2167 Ай бұрын
Good stuff, man. Needed an overview and you really provided that and more
@glenbeumer8607
@glenbeumer8607 Ай бұрын
Good tutorial - made it simple to get started! Thanks.
@moona1993august
@moona1993august 5 ай бұрын
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 !!!!
@user-kd4ti6bu9x
@user-kd4ti6bu9x 6 ай бұрын
Thanks buddy it was Really helpful
@digenmore83
@digenmore83 2 ай бұрын
Thanks a lot 🙌
@nickthiru
@nickthiru 8 ай бұрын
@16:42 It happens, even to the best and most experienced of us ;-) . Thanks for a great tutorial!
@webwizard8
@webwizard8 8 ай бұрын
😄 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!
@naturevideos6464
@naturevideos6464 11 ай бұрын
Thanks .it was very helpful
@webwizard8
@webwizard8 11 ай бұрын
Most welcome! Consider subscribing to the channel for more content!
@HarshitChadha123
@HarshitChadha123 Жыл бұрын
thanks bro it worked!
@webwizard8
@webwizard8 Жыл бұрын
You're welcome!
@appstuff6565
@appstuff6565 2 ай бұрын
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.
@ashutoshsinghe
@ashutoshsinghe Ай бұрын
facing an error ses_Client.send is not a constructor
@roshanican504
@roshanican504 11 ай бұрын
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
@webwizard8
@webwizard8 11 ай бұрын
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!
@naveenbisht4627
@naveenbisht4627 5 ай бұрын
Thanks man, This works for me.
@user-cu1ke7om4l
@user-cu1ke7om4l 9 ай бұрын
how to send bulk email?
@sombraerato5421
@sombraerato5421 7 ай бұрын
Email address is not verified. The following identities failed the check in region AP-SOUTH-1
@shivShaktitech
@shivShaktitech 8 ай бұрын
this wont work now aws made email and domain both manditory
@webwizard8
@webwizard8 Жыл бұрын
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 - kzfaq.info/sun/PL72qLZfXkeBRseVthAcq2__EPmGoXIL2D
@abhiseksahu4156
@abhiseksahu4156 10 ай бұрын
how to send direct email.i dont want to end verification email so what can i do
@webwizard8
@webwizard8 10 ай бұрын
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
@michaelseth4954
@michaelseth4954 Жыл бұрын
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"
@webwizard8
@webwizard8 Жыл бұрын
Can you try generating new credentials for the same user and use the same ?
@michaelseth4954
@michaelseth4954 Жыл бұрын
@@webwizard8 It still doesn't work after deploying to AWS, It works on local though
@caesarsage
@caesarsage Жыл бұрын
Thanks How do i attached a pdf file
@webwizard8
@webwizard8 Жыл бұрын
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 - kzfaq.info/get/bejne/nNqXfpl2x6fMqaM.html I hope this resolves your query and consider subscribing to the channel!
@PankajKumar-gz1mt
@PankajKumar-gz1mt 11 ай бұрын
Hi bro if i send mail id wrong then what response will i get from it.
@webwizard8
@webwizard8 11 ай бұрын
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
@PankajKumar-gz1mt 11 ай бұрын
@@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.
@webwizard8
@webwizard8 11 ай бұрын
@@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 - kzfaq.info/get/bejne/pJl2pZOTqNmtpqM.html
@fremeto
@fremeto 10 ай бұрын
Promise { } What that meaning?
@fremeto
@fremeto 10 ай бұрын
with v3 the message is promise { false }
@webwizard8
@webwizard8 10 ай бұрын
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?
Full Node.js Deployment - NGINX, SSL With Lets Encrypt
23:48
Traversy Media
Рет қаралды 403 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 9 МЛН
AWS SES + NODEJS Express | Simple Email Service
30:08
Mahesh Kariya
Рет қаралды 695
Nodemailer, Emails con Nodejs y Javascript
11:07
Backend — Frank GP
Рет қаралды 550
How to use AWS Lambda & NodeJS for your email services
31:21
How to send email using Gmail API (uses OAuth2 and nodemailer)
17:55
[Best Practices] Move Amazon SES out of Sandbox Zone | SES Production Access Request
9:54
SendMails | Email Marketing & Automation Platform
Рет қаралды 5 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН