Send Email Using Spring Boot | Gmail SMTP | Java Mail Sender
Vložit
- čas přidán 21. 07. 2021
- In this video i demonstrate how to send simple email using Spring Boot. I will be using Java Mail Sender Dependency and gmail smtp to configure spring boot application for sending mail.
Source Code : github.com/arjungautam1/Sprin...
➡️ Support me
PayPal : paypal.me/codewitharjun
Patreon : / codewitharjun
➡️ Subscribe : / codewitharjun
Stay Connected :
➡️ LinkedIn : / arjungautam1
➡️ Github : github.com/arjungautam1
Join Community :
➡️Discord : / discord
Follow me on :
➡️ Medium: / codewitharjun
➡️ Dev.to : dev.to/codewitharjun
#springboot #java #arjuncodes #CodeWithArjun - Věda a technologie
Thanks for this video, I was facing issue regarding mail properties and trying to fix it from last 3days, but with watching your video its quick solved....Thank you so much.....
Ive been craving for this type of tutorial! Thanks a lot!!!
Thank you so much !!! This video is far beyond great, it's concise, straight to the main point, precise and nicely organized ! Thanks for the gem sir
Thanks a lot, you saved me. I have been stuck into a problem, it worked now
Great!! Excellent just what i was looking for. Thank you a lot.
Glad it helped! Be sure to subscribe.
No words to explain the simplest way of your explanation bro. Cheers!
please bro I dont find the apps passowrd can you help?
perfect explanation, thank you so much for simplicity and clearance
You are AMAZING !!! thank you very much it worked !!!
Thank you for the tutorial working perfectly...
Finally found some fast&easy tutorial. Thank you!
You're welcome!
SAVED ME!!! TKS MAN, UR THE BEST
amazing video, congratulations and thnks
Thank you so much! I can follow your work and it really save my time.
Glad to hear that!
I love the way he pronounce java and generate😂😂
Thanks buddy you save my day with this tutorial 🤗
thanks man that was helpful!!
After a week of trying, your video had the right hint, thank you
Glad it helped!
Thanks a lot, great help! It actually worked perfectly :)
Glad it helped!
easy, fast, very good, thank you for sharing!
Glad to hear that, Be sure to subscribe.
Thanks bro, really helped
This is gold. Thank you.
You're very welcome!
Dope video on Springboot and Java!
Glad it was helpful. Be sure to subscribe.
Thanks so much! I'm going to use it on my school project :)
You're welcome 😊 Be sure to subscribe.
You saved my day!!! Thank you!!!
Glad it helped! Be sure to subscribe.
what if we want to add a customised body, like I need to add a dynamically generated table in the body of the email.
You saved my time. Thank you!
You're welcome!
Thank you bro. It's very useful. Instead of setting up node js backend server, it's a very easy method using spring boot.
Glad it helped
Spring Boot just makes it so easy, and you make it much easier to understand. Thank you so much
Happy to hear that!
Is this code is working now
I have searched so many codes but unable to get email authentication
Is your code works fine?
@@vamsivickey6185 Hey, I just tested the code and it sends the mail successfully
@@trolloosoomgf527 I am not getting option for app password
awesome. Thanks for the wonderful explanation, its very helpful.
You are welcome!
Excellent, keep up the good work
Thanks, will do! Be sure to subscribe.
Thanks! Worked perfectly!
You're welcome!
very useful!
Ekdam ramro content bro, ajhai dherai video haru aaos good luck!!
Sure. Keep supporting.
you re the man
Nice!
OMG Thanks bro) So es
wonderful
Great explanation , thanks ...
hello from turkey :)
Thanks for watching!
thank you very much
Thanks brother : )
Great work.
Thank you! Cheers! Be sure to subscribe.
Thank you .....my issue fixed because of this video...do more videos
Glad it helped ! Be sure to subscribe.
Great video. Really helpfull
Glad it was helpful!
thanks for sharing
Everything works fine in my localhost, but when I configured in my live server it sending mail after 1 to 2 (too slow)minutes. kindly Help🙏🏻
does this have dependency added to your project structure sir? and how to add that to a existing project
class file for javax.mail.internet.MimeMessage not found do u know how to fix this?
Thanks!
Can i add dependency after initialize the project?
Can i use it on prod? What are a Gmail SMTP limits?
Works like a charm
I can't find the app password section
great video, thank you
Glad you liked it!
thanks at first it didnt work but then i found its because of properties in yml. It worked in the end.Thanks for exlanation
Glad it helped ! Be sure to subscribe.
@@CodeWithArjun done
Hey man its not working for me to.. Do you mind sharing because of which property in XML...
@@roan1435 hey mate i don't remember exactly what caused the problem. But now after checkign the project i can say its pretty easy just make sure you set your configs in yml right
here is what i got
spring:
servlet:
multipart:
max-file-size: 3MB
datasource:
url: 'jdbc:mysql://localhost:3306/name'
username: root
password: 12345678
mail:
host: smtp.gmail.com
username: email address
password: password
port: 587
properties:
"mail.transport.protocol": smtp
"mail.smtp.auth": true
"mail.smtp.starttls.enable": true
and if we want multiple users to send email ?
Excellent!
Thank you! Cheers!
if we need to add logo or favicon then how? plz show me
BEST
i have this error
unable to find valid certification path to requested target
Hi Arjun , i am facing this error . Spring Boot java: cannot access javax.mail.internet.MimeMessage class how to resolve
How can we send email for multiple users???
Do you have a video on how to send an email with spring that contains information from a java application. For example I want to send an email with
Github updates to projects
hi, can someone help, i cant find app passwords in my account settings anymore
Keep up with such perfect tutorial!!!
Glad you liked it, Be sure to subscribe.
i am getting this error
Local address contains control or whitespace
Can we send the email without app password?
you saved me !!!!!!!!
Thank you so much.
Super class
Thank you
hi, why we are app passwords setting
Also i want to know how to design with colors and borders an email when sending it
I will research on that and try to make video.
I tried this and this works, but I created 2 test emails to see if this works. But the next day when I tried to login to the test email it shows "Your account has been disabled. It looks like this account has been created or used with multiple other accounts to violate Google's Policies. This account might have been created by a computer program or bot." Does anyone know why this happens? and how is this violating Google's policies and is there any fix to this?
Dear Sir,
I have a doubt regarding the tutorial I followed. Despite following it carefully, I encountered an error message stating "unable to find valid certification path to requested target" and "unable to find valid certification path to requested target; message exceptions (1) are: Failed message 1: jakarta.mail.MessagingException: Could not convert socket to TLS." I believe the issue may be related to the configuration of my certificate. Could you please provide a tutorial on how to configure the certificate?
Thank you.
I got same issue
you got ans @@dineshmk8817
Thank you
Welcome!
Hi , I didn't understand why we are setting app passwords? By providing that what's the use to sender and receiver? Plz give me clarity on this.
Thanks in advance.
It’s so that you don’t have to put your actual password to sign into your account into ur code and also ensures that you don’t get flagged by google as a bot because they know you are a bot and that that boy is supposed to be in your account
Please make a video on how to send email without using password
Nice video.! But My App doesn't send an email. But in mockMvc Test, it works using same method(to send email) . I don't know why.. (3am now..) .
If someone know about this situatioin, plz reply....(working in Test app, but not working Spring boot app)
Hello I am learning your Send Email Using Spring Boot I am getting few error can you please help me> public void triggerMail() throws MessagingException {
How to read email in inbox ?
How do I do when the user is gonna entry the email in the front(angular)?
you can make and end point in your backend that receive the user data and later send the email...
how deploy this?
Hi for me the app password option is not coming ??
How can we unsubscribe from these emails ?
Hi, I have a problem with the tutorial. When I try to autowire the mailSender i get a error which says: "Could not autowire. No beans of 'JavaMailSender' type found.". Do you know how i can maybe fix this. It would be very nice because I need this for a university project. Thank you
Use the 1.6.7 Version of the jakarta.mail dependency, this fixed the Issue for me
@@philgrauenkopp5640 Where can you do that :/?
@@philgrauenkopp5640 Good video
How to set timeout. I need to increase to 5000 timeout
Can u make for us another video wich i can send an email with an attachement with is like a pdf
Next video will be on that be sure to subscribe.
❣
Thanks for the support.
me ayudo mucho!! Thanks!!!
can i run the project in the eclipse ide?
Yes you can.
I got error message: "unable to find valid certification path to requested target". Can you help me?
disable antivirus
@@ikirstenHD thank you so much!
does it work with java8?
yes. definitely. Don't forget to subscribe.
mailSender is not initialized/constructed
thanks
Welcome ! Be sure to subscribe.
@@CodeWithArjun i have an issue, my mail sent successfully but sender is not correct. It was my gmail instead of method parameter Email. Can i stop to notify the CC Email holder?
Can multiple send gmail ??
You can.
@@CodeWithArjun How can we scale the application for 400K+ user?
No app password setting in google security account. Anybody find solution?
Yes,search it as App password
Need for amazon smpt video
same thing just change the properties.
can you please give me a code link ...
Checkout description.
530 5.7.0 Must issue a STARTTLS command first. j8-20020ac86648000000b00344a9149da2sm991745qtp.55 - gsmtp
put is hold
Still getting Authentication Failed
You are following this tutorial or you have your own code?
21700 put hold
pass otp instead of body