问题描述:

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

相关阅读:
Top