开发者

Send mail from my web application

开发者 https://www.devze.com 2022-12-22 23:14 出处:网络
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)

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

0

精彩评论

暂无评论...
验证码 换一张
取 消