Spring Boot Email Sending Tutorial (Text, HTML, Inline and Attachment)

preview_player
Показать описание
This Spring Email tutorial helps you to learn to code sending emails in a Spring Boot application. Send plain-text email, send HTML email, inline images in email, add attachments into email. A GMail's SMTP server is used as the outgoing mail server.

Through this video, I'll guide you to code the Contact Us module for a website. The user fills information like name, email, subject and content. Upon submitting the form, the application will send an email to the website's owner.

In details, you will learn to code the following things with Spring Mail:
- Declare dependency for Spring Boot Starter Mail
- Configure SMTP server settings (use GMail)
- Send a plain-text email
- Send an HTML email
- Inline an image in email
- Add an attachment into email

Technologies:
- Spring Boot Starter Mail
- Thymeleaf

Software programs:
- Java Development Kit (JDK)
- Spring Tool Suite IDE (STS)

#springboot #email #springframework #java
Рекомендации по теме
Комментарии
Автор

Always providing awesome content! Thanks Nam!

francksgenlecroyant
Автор

Thank you for making this video! It helped me out alot!

rramsdany
Автор

Thank You so much! Could you please share your knowledge on how to read email inbox using spring boot integration

chaitureddy
Автор

Thanks a lot for all your tutorials, they're very instructive. When are you finishing your course on Udemy about e-commerce application ? Please I want the full and complete project. Thank you again

gloirebeya
Автор

Im getting this error:

530 5.7.0 Must issue a STARTTLS command first. v16sm4395084qth.51 - gsmtp

YoutuberMaskarado
Автор

Nam you are my rocker! Awesome Awesome. yyyou. 🖖🏻🖖🏻🖖🏻Small question, where did you get the Java T-Shirt? I can’t find it anywhere😩😩😩

brazo
Автор

Can you plz make video on payment gateway and login using Google or fb accounts implementation ?

TheGreatHinduRashtra
Автор

Dear Nam, could you make a Spring Boot Video, how I can send newsletter on a bunch of mail adresse via db?

brazo
Автор

hello thank you for this tutoriel, nice work, for me i have a problem with the img, it can't be loaded, thank you

mohamedazizskiken
Автор

Thank you very much!
Can you make a video about the new authentication (oauth2.0) on Google?
I'm trying to refresh the token without enter it manually. Thanks for your help!

alexismhernandezguzman
Автор

Trong video có cái thuộc tính from. Em không thấy nó xuất hiện ở trong phần mail gửi. Mail gửi luôn luôn được confir trong file application.properties rồi. Cho e hỏi cái đó để làm gì vậy ạ ?

TheToanNguyen-fhkf
Автор

Thanku for this concept.
But I want to Validate email through some otp code is valid email or not. Please make one video.

AjayGupta-oboe
Автор

anh ơi, có thể thêm cái chia phân đoạn cho video để follow nội dung dễ hơn đc ko

thanhtc
Автор

Thanks anh. Em đang định xin anh ra clip hướng dẫn phần email. ;)

ktn
Автор

how can I send the selected content of an html table?

e.g. I select 3 rows out of 10 and send them

clava
Автор

Hello. I followed your tutorial, but I am getting an error of SSLHandshakeException with a message "PKIX path building failed: unable to find valid certification path". Did I do something wrong?

ainkivimagi
Автор

Why message sending slow, how we decrease message sending time

codercoder
Автор

Can u send the zip file of this project

santhakumarid
Автор

Em bị dính 1 lỗi Couldn't connect to host, port: localhost, 25; timeout -1;
search qua thì do em tạo con
@Bean
public JavaMailSender emailSender(){}
nhưng mà nếu em tắt con Bean này thì code ko chạy luôn

sdawdwadaufyuaiudi
join shbcf.ru