How to send an Email using Java Mail API in a Java web application ?
Author: Dinesh Varyani
38817 View
28m 6s Lenght
211 Rating
CLICK TO DOWNLOAD COMPLETE SOURCE CODE - http://www.hubberspot.com/2014/09/how-to-send-email-using-java-mail-api.html *********************************************** Do Watch Video in High Quality ... ***********************************************
Comments
-
very nic sir
-
bro how to download source code ....
-
Brilliant! Thanks!
-
Add this
props.setProperty("mail.smtp.ssl.enable", "true");
props.setProperty("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); -
I am receiving the message - Mail sent but not receiving it in the inbox. What could be the reason ?
-
is it possible to upload the sourse code ?, the link in your site is not good
-
its nice work ....
-
No error in the code but not able to send mail !! plzz help
-
sir code is correct but i didn't get message to my gmail.... what i want to do....
-
can not download the project?
-
i m getting problem in sending i am getting waiting for localhost
-
Perfact code................................
-
mailMessage.setContent(message, "html/text"); < ---- should be changed to
--> mailMessage.setText(message);
Otherwise mail is send in form of unknown attachment rather than simple text which need to be downloaded by recipient to read it.
Rest is fine in tutorial. -
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [MailDispatcherServlet] in context with path [/EmailSenderApp] threw exception
java.lang.NullPointerException -
Que tal amigo porfavor algun proyecto que tengas para adjuntar archivos con java email ?
-
http://stackoverflow.com/questions/1990454/using-javamail-to-connect-to-gmail-smtp-server-ignores-specified-port-and-tries
helped me to get the connection -
I got this when I would do the "mailsender.sendEmail(fromEmail, username, password, toEmail, subject, message);"
Can you please help as soon as possible because I'm trying to incorporate this into my senior project PLEEEEASSSEEE.
"Warning: standardwrappervalve[MailDispatcherServlet]: Servlet.service() for servlet MailDispatcherServlet threw exception
java.lang.NullPointerException"
And when I hit send, it displays a blank page that is linked to the servlet but again the error above displays. When I take off "mailSender.sendEmail(fromEmail, username, password, toEmail, subject, message);" It displays the message and redirect link but no email of course.
Again Can you PLEEEEAAASSSEEEE help me as soon as possible. -
Hi, I have got "Mail sent successfully" message, but mail doesn't sent.
-
hi, there is no error but mail doesn't sent. I have used GlassFish server. Thanks.
-
thank you for this video , it is very very very good, I do not need the source code as you explain it well