I have a feature in my web app like I have to send mails from the server to many email ids (some kind of notification stuff)
my web application is implemented in struts2. Possibly I have to use javamail api i guess. I am completely new to this javamail and sending mail from server. what basic steps I need to do to setup a mail server in windows, contact the server from my java web app. What api i should I use ? The web has very limited tutorials on javamail and they are damn complicat开发者_运维问答ed too. Is there any other api other than javamail by which I can send mail from my java struts2 web app.
thanks
I suggest you use Mercury for your mail server. The javamail API is pretty straightforward. Just create a utility class to simplify the javamail API further.
for this use smtp in your jsp page... for more refrence go to www.java2s.com
精彩评论