Send Email from Spring Boot Application
Vložit
- čas přidán 10. 11. 2020
- In this video, you will learn to send an email from a Gmail account using a Java and Spring Boot framework.
GitHub Link: bit.ly/3pjXOEA
Other Video:
-----------------------------------------------------------------------
Docker VS Kubernetes VS Docker Swarm - • Docker VS Kubernetes V...
Docker Compose Tutorial with commands and Example - • Docker Compose Tutoria...
How to Install Docker in Window 10 - • How to Install Docker ...
Docker Tutorial - Most used Docker Commands With Examples | Docker Training | Daily Code Buffer - • Docker Tutorial - Most...
How to install Kafka using Docker & Docker Compose in any Operating System | Windows | MacOS | Linux - • How to install Kafka u...
How to Deploy Quarkus App in Docker - • How to Deploy Quarkus ...
How to implement Logging in SPRING BOOT - • How to implement Loggi...
How to Push and Pull a Docker Image from Docker Hub - • How to Push and Pull a...
Create Docker Image without Dockerfile in Spring Boot - • Create Docker Image wi...
Follow us on :
--------------------------------------------------------
Website: www.dailycodebuffer.com/
Facebook: / dailycodebuffer
Twitter: / dailycodebuffer
Instagram: / dailycodebuffer
GitHub: github.com/dailycodebuffer
My Laptop :
------------------------------------------------------
ASUS ROG Zephyrus G14, 14" - amzn.to/3tMb1I6
ASUS ROG Zephyrus G14, 14" (US) - amzn.to/3xa6X6m
Audio Gear :
------------------------------------------------------
Maono AU-A04 Condenser Microphone : amzn.to/32FOpwI
Maono AU-A04 Condenser Microphone (US) :amzn.to/3awzUj7
Secondary Audio :
------------------------------------------------------
Maono AU-100 Condenser Clip On Lavalier Microphone : amzn.to/3sGIbYd
Recommended Books:
------------------------------------------------------
Mastering Spring Boot 2.0 (Kindle): amzn.to/3tHJV4L
Mastering Spring Boot 2.0 (US) : amzn.to/3tHNUy5
Building Microservices(Kindle) : amzn.to/3gsA1jL
Building Microservices(US) : amzn.to/3dDnfNn
Spring Boot in Action : amzn.to/2Qo6YTM
Spring Boot in Action (US) : amzn.to/32DkeX9
Spring Microservices in Action : amzn.to/3gsA3rT
Spring Microservices in Action(US): amzn.to/32G3Hl7
Music:
-------------------------------------------------------
Hear the Noise (Sting): czcams.com/users/audiolibrary...
“Sound effects obtained from www.zapsplat.com“
#Email #SpringBoot #DailyCodeBuffer - Věda a technologie
Follow me on Twitter: twitter.com/DailyCodeBuffer
Thank you so much Brother for explaining well about this project
Super simple and super well explained
Thanks
Thank you bro. It helped me a lot.
i dont know why when i watch your video my problems solved in less than 15 minutes!!thanks daily code
Thanks a lot for this tutorial. Well explained !! :) Could you please make a video on Spring boot-Kafka to trigger email notifications?
Excellent video bro, it helped me a lot
You saved my day bro. thanks
Your knowledge and mastery as well as your teaching method are excellent.
God bless you.
Thanks 🙏
Just nw my team given this task to do, thanks alot bro,,, keep going and help many to learn
Glad it helped 🙂
Very easy to understand from your explanation! Have a nice day guy! from Vietnam with love
Thanks 🙏
thanks brother, for letting know this
Congrats nice and explicative video!!! Keep doing.
Thank you
Nicely explained 👏
thx Man :)I have fighted with it 2 days.
Superb Man.
Thanks a lot , the most simple explanation over the internet. :)
Thanks 🙏🏻
I just got work to send mail from spring boot and this video dropped. Thanks a lot
Glad it helped ☺️
Haha nice
Thanks a lot !! how to integrate JSP or thymeleaf to this project
Thanks a lot!:)
Thank you Sooo much for this channel ,, as I take tutorials on the same , I gain more interest in watching more , your explanation is that , simple demistifyning confusions once and for all ,, the best of all the Spring boot totorials .
Thank you so much 😊
Nice explan, thanks a lot
Thank you
Great tutorial man! Will this allow emails to be sent to anyone or only to other gmail accounts?
thanks man you helped me a lot
Thank you
awesome tutorial, thank you 😊
Glad it was helpful!
thanks you for the video, how can i use this behind proxy?
Easy and accurate tutorial
Thank you
thanks for the interesting concept, but I have a question, assume we have received daily data with the attached link in the same outlook email that link has a data that needs to save on the database, this email is coming every day and the database needs updated data, which means for every that email coming data the with the database also updated. how can implement this ?.
Nice video sir! Is there any more similar tutorial where we can send validation of user register via email with REST API ?
It's simple and straight to the point ! Please make more videos like this. I smashed the red button :-D
Thank you so much
I Love You videos
Hi, Could you please make a video abt how to send an email using SES service in AWS using springboot
How about for outlook and without authentication?
How do you handle bounces sir ?
I am generating a pdf by using iText and tryin to send that as an attachment in the mail but everytim I get a file not found exception, could you please help me with that?
For outlook , how can you configure?
Could you help me how to remove CC? Because when i keep cc as null or empty it takes the e-mail id of the From mail id!
Can we select gradle project and do the same, does it works plss reply I need ur help pls
hello, i'm getting this "java.nio.file.InvalidPathException: Trailing char < > at index 16: E:\\emailsent.gif" error while sending mail with attachment.
How can I read a . eml which saved in my desktop ?
Sending mail From Outlook what changes we need to do?
Good video 👍 good explanation
Thanks 🙏🏻
Hi bro,
Do you have an idea how to send the attachment with password protected using java spring boot..
Thanks for this application. Can you please also help to understand how you can pass an html template in body instead of passing simple textmessage.
Hello daily code ? How do you handle nested Json from the client using @RequestBody ? Like am having a client sending nested Json to the spring boot server ,and am stuck.
How can send mail to span folder
Awesome! Clear and the most importantly... fast. Do you know how to make body html templates also? The package structure and everything else?
You can use thymeleaf engine to do so, and I don't get what do you mean by package structure.
@@Bimal_Behera thank you, I managed to do it with freemarker. About the package structure what I want to say is: What is the best folder structure in Eclipse to do it. What I did: I put the templates on resource/template, and the Mail class on src/utility, and I don't know if it is the best choice for that.
Great work
Thanks 🙏🏻
the modern mail service providers offer encrypted alternatives on different ports that use SSL/TLS to encrypt all the data being sent over the wire or to upgrade an existing unencrypted connection to SSL/TLS. Plz upload/refer the video if you have.
Hello Shabir than you for informative content. But I ask you a question. How to integrate "email subscription" for spring boot project? For example I want to do any newsletter who subscribed my site and those person aware of its newsletter. thank you in advance
how to store this email in database with attachment and retrieve the email and send it via email???
how to use to send outlook mail in this code
Good one👍
Thanks 🙏🏻
Very Awesome tutorial ❤, thank you very much sir but please what theme do you use in your intellij IDE
Thanks 🙏
Xcode Dark theme
is there a limit on how many free mails you can send
How to send email using apache kafka...?
Please reply
Thank you so much brother .
Thanks
@@DailyCodeBuffer I want to give you one suggestion
Tell me
Please create Spring Boot project videos from basic to advance level projects only using Spring Boot Only just like you created a Simple Email Cliet using Spring Boot .A personsearching for Spring Boot Projects may not be interested in Docker+Spring Boot or AWS+Spring Boot.
How would you send a timed/scheduled email at a specific date-time? So for example, if you have a database that has stored information on a specific date and time (e.g. for a task of some sort), how would you send an email to a recipient (responsible for that task) let's say 24 hours before that date-time value. This date-time could be an upcoming appointment or a deadline and the email should remind the recipient of this 24 hours prior that date-time.
For simplification, let's say that a database table has the following columns: name, emailAddress, taskName, date-time. The software would then based on the email and date-time values of the row same row send a mail to the email address 24 hours prior to the date-time value.
A tutorial or something of the like would be nice but I appreciate any response to the question :).
Hi
How to create xlsx file injected by database and directly add as attachment to email and sending through smtp?
Could you show us on video?
Use Spring Workbook(apache.poi) concept for xlxs file, once the xlxs file is created attach the file as byteArray
Nice video..
Thank you
It was nice video sir ,but i am encountering an error ,the service is not appearing in eureka but it is succesfully sending the mail,what can be issue sir?
Thnks man
Welcome
How to send email with your actual name instead of email id as your name ?
Hi, Im getting this error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. v16sm4395084qth.51 - gsmtp
Found the solution. I had to disable the checking in Avast program on Windows for sending emails.
Tq
while creating app password, gmail says "error creating app password" and show nothing else.
How to send only sender name without displaying send email address
Bro it useful
Thank you
I'm getting error like "Required Application specific password" ?
Great explanation, however gmail mail server is using tls protocol so we can use tls config and can able to trigger mail fro springboot apps, but some other provider like godaddy is using ssl encryption for their smtp servers for that how can we trigger, i searched lot but none of the resources available with solution. Can you able to provide if there is any way.
Bro from where did you learnt Spring Projects? What paid courses, articles, yt_playlists, etc... you studied from?
@@simon8284 many yt available bro, daily code buffer, java techie, amigoscode,coding streams,bouli ali etc
Thank you for your video! Assume that we have the following case:
We want to send an email with a PDF attachment without having the PDF stored locally. For instance, we query the database table "EMPLOYEE" and we want the results to be saved in a PDF and then attach this PDF to the email. Keep in mind that we do not want to create the PDF file locally because the server might not allow the web service to create files locally. Maybe, we will have to attach multiple files as well. Is this possible?
I doubt that's even possible. You need some temp folder where you can store the PDF.
Did you find any solution to this
@@sujeetpalei5098 Not really. I had to save the file in the tmp folder of the server. After I send the email, I delete the PDF from the tmp folder
@@ainigma100 do you have any reference code?
@@sujeetpalei5098 To tell you the truth at the moment I do not have it. Whenever I find time, I will post here. Keep in mind that I cannot post the whole code …
How to send email via outlook
Thanks bro, maza aagya, bas thoda aur cheezo ko explain kiy karo like technical details.
Authentication failed; nested exception is javax.mail.AuthenticationFailedException: failed to connect, no password specified?
help me
Could you please make sure you have entered credentials correctly and all config is correct 🙏
besides what @DailyCodeBuffer said, I would recommend you to be sure that you are using the app password instead of your email password
Why ur channel is underrated 😭?
🙏🏻
How did you Autowired JavaMailSender without having it's been anywhere in the project. My INtelliJ throws error for that.
What exact error are you getting?
@@DailyCodeBuffer IntelliJ was showing error - but when I built, it worked.
Now, the question is who is creating the bean... Spring boot or any component of it ?
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
try to use no ssl port for smtp
Hi am getting this exception pls help
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted.
Have you enabled teo factor authentication? If not please add and check again. Hopefully it will resolve
@@DailyCodeBuffer thank u for quick response , i fixed it
okey
How to perform in 2023 🎉
moj kar di ✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
🙏🙏
Simple and Amazing ....Thanks a lot @Daily Code Buffer💌
Thanks 🙏🏻 ❤️
Bhai code explain krna tha, akele classes ke names padh ke code nahi krna tha...
HI i using spring webflux but i have this problem:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Hi, I am facing this below exception , how can i resolve it ?
530 5.7.0 Must issue a STARTTLS command first. be11-20020a170902aa0b00b001b06c106844sm18078646plb.151 - gsmtp
Can you help?
Description:
Field mailSender in com.example.saj.email.email.EmailSenderService required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)