Java - Send Email from Java Program - Java Mail API

Java - Send Email from Java Program - Java Mail API

Genuine Coder

5 лет назад

161,221 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@konradkrasocki7720
@konradkrasocki7720 - 09.11.2023 12:38

Great tutorial. Thank you a lot!!!

Ответить
@petztech
@petztech - 10.08.2023 08:29

you are the man

Ответить
@user-it2qd3uo6u
@user-it2qd3uo6u - 07.06.2023 13:45

Can't send command to SMTP host;

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Ответить
@MJamil-hn8sv
@MJamil-hn8sv - 01.05.2023 17:00

Bhagwan

Ответить
@johnmcafee9169
@johnmcafee9169 - 18.03.2023 21:51

it worked perfectly

Ответить
@Slayer0248
@Slayer0248 - 30.01.2023 11:33

Have you encountered this error when sending the email before by any chance and would you know how to solve it?
javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair

Ответить
@siege26
@siege26 - 29.11.2022 18:01

🔥thanks.

Ответить
@GayathriS-tv6ou
@GayathriS-tv6ou - 25.11.2022 10:32

Hi every one, i havw facing issues like(javax.mail.MessagingException: Could not convert socket to TLS;) please give me some solution .

Ответить
@heitormagacho3325
@heitormagacho3325 - 25.09.2022 18:01

i had an error: could not convert socket to tsl

Ответить
@gabrielsiqueira4334
@gabrielsiqueira4334 - 13.09.2022 03:01

Amigo, você é incrivel. Salvou meu TCC. Obrigado e toma esse like!

Ответить
@yourownsde
@yourownsde - 03.08.2022 20:07

thank you for this awesome video

Ответить
@kluchtube7042
@kluchtube7042 - 12.06.2022 13:13

thanks man

Ответить
@surajnath5148
@surajnath5148 - 11.06.2022 21:22

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🙏🏻

Ответить
@wilsonendif6255
@wilsonendif6255 - 06.06.2022 02:40

yaa no funciona 2022

Ответить
@leroycarrasquero9065
@leroycarrasquero9065 - 28.04.2022 06:28

Can you upgrade to run this in Jakartaa and Glassfish? is returning comsunmailimapIMAPProvider not a subtype exception :c

Ответить
@Ben-ie2ru
@Ben-ie2ru - 26.04.2022 19:52

Interesting tutorials thanks a lot. But i have done the same things but unfortunatelly the e-mail can't be send . I don't know why. May you help me please to resolve this problem? thanks for your understanding

Ответить
@rajat1999gupta
@rajat1999gupta - 26.04.2022 14:32

Excellent tutorial

Ответить
@premgarg5534
@premgarg5534 - 26.03.2022 13:17

Great tutorial!


But there is an error :-
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler

If someone can help with that plzz do

Ответить
@silent1884
@silent1884 - 15.03.2022 08:39

well explained, thank you

Ответить
@chaimaebougattaya1785
@chaimaebougattaya1785 - 12.03.2022 18:13

Thank you so much !

Ответить
@ivanstefanov5213
@ivanstefanov5213 - 21.02.2022 01:40

Great job helped me with my finala project for It talents Bulgaria . Greetings brother. Ako znesh mamichkata mi se eba s toq proekt , Krasi rules

Ответить
@pokyshorts9074
@pokyshorts9074 - 15.02.2022 11:56

Thank you.

Ответить
@tejaschalke1778
@tejaschalke1778 - 27.01.2022 15:51

If anyone is having problems where the email is sent and seen on the same account used for sending the email, but can't see it on other accounts, use a account that has 2 factor authentication enabled to send email. If you are concerned about the password use "App password" feature in "security" tab of your gmail account to generate random password.

Ответить
@silvadacunha692
@silvadacunha692 - 24.01.2022 17:25

could you pls share the source code? I am getting errors in my code and I can not compare the mistakes

Ответить
@smania7775
@smania7775 - 23.01.2022 00:49

its recipient (not recepient) btw

Ответить
@huidrompunendrajitsingh1758
@huidrompunendrajitsingh1758 - 21.12.2021 06:36

Add the below code to properties if you have exception of javax Could not convert socket to TLS;
props.put("mail.smtp.ssl.protocols", "TLSv1.2");

and bro thanks for this video.

Ответить
@maryclareelizabethgamao5638
@maryclareelizabethgamao5638 - 16.12.2021 07:12

Thaks this is very useful.

Ответить
@kingsoftamil6191
@kingsoftamil6191 - 11.10.2021 10:25

Good job Bro...

Ответить
@chabetiico
@chabetiico - 26.09.2021 04:20

I can implement CSS in this API?

Ответить
@alfredochola5971
@alfredochola5971 - 22.09.2021 05:46

THANKS ALOT GENUINE CODER

Ответить
@riteshjain1235
@riteshjain1235 - 16.09.2021 13:52

great explanation, keep it up!!!!

Ответить
@g-sUp
@g-sUp - 15.09.2021 16:36

thx u very much!!!:)))

Ответить
@gamechannel_833
@gamechannel_833 - 15.09.2021 14:06

Man, thank you so much! Good tutorial!

Ответить
@techmoon_
@techmoon_ - 07.09.2021 10:22

great video man !!!

Ответить
@rishabhparsediya608
@rishabhparsediya608 - 30.08.2021 22:13

java.lang.ClassNotFoundException: javax.mail.Authenticator Tried everything but can't solve this error, Can someone help me out here ?

Ответить
@anusharma640
@anusharma640 - 26.08.2021 10:05

can you please guide me to send bulk mails like this way

Ответить
@ROHITVETRI
@ROHITVETRI - 25.08.2021 17:46

like how to send an attachment is there any set() value to be given?

Ответить
@chandusai3612
@chandusai3612 - 04.08.2021 18:42

It shows mail.jar has no source attachment. can anyone tel me the solution

Ответить
@musharafaahel8963
@musharafaahel8963 - 17.07.2021 05:58

Can you help me out
It shows that javax.mail.Session is not accessible
may I know what should I do?

Ответить
@kwekker
@kwekker - 28.06.2021 18:31

holy shit man you helped me so much that low security setting was very hidden, thank you very much.

no but for real thank you so much I finally sent an email yes

Ответить
@nithyapriyaav6327
@nithyapriyaav6327 - 09.06.2021 08:13

Thank you for the video

Ответить
@vaishnavisherala
@vaishnavisherala - 02.06.2021 07:25

What I do
Plz say me

Ответить
@vaishnavisherala
@vaishnavisherala - 02.06.2021 07:25

Hii
In this project I am facing some errors

Ответить
@yassinemessaoud8619
@yassinemessaoud8619 - 01.06.2021 01:37

i always get error: unable to find valid certification path to requested target

Ответить
@rajugupta7843
@rajugupta7843 - 26.05.2021 14:25

Can you please provide whole code

Ответить
@thisissuvv
@thisissuvv - 21.05.2021 09:38

but storing the password isn't a bit risky ??

Ответить
@andreiiorga6813
@andreiiorga6813 - 12.05.2021 17:30

Thank you very much sir it helped me a lot. Any idea where can I find a tutorial about mail listener? I wand to be able to intercept every email from an email address. Thank you.

Ответить