当前位置: 动力学知识库 > 问答 > 编程问答 >

email - how to send mail to a mailing list with java?

问题描述:

I want to send a mail to a mailing list every period of time (like every 40min or hour) with java on a unix server.

I'd like any code or tutorial to be able to do this.

Thanks

网友答案:

Sending a mail to a mailing list does not differ from sending a regular mail. The simplest way is to use commons-email. Check its examples.

网友答案:

JavaMail is the usual approach for this. You will need a SMTP-server for JavaMail to connect to.

网友答案:

If it is not necessary to USE SMTP - java mail enough Simple example http://pastebin.com/z4YxKFe6

分享给朋友:
您可能感兴趣的文章:
随机阅读: