How do I send emails in Java?
Hey. I currently want to develop a simple program in Java that sends out email. Not just a few emails, but actually a lot (10k+) I have a subscribers list that all agree to it, by the way.
Anyway, I cannot send these emails via Gmail or anything like that - They do not allow t开发者_开发问答hat many emails to be sent. So the basic question is: How do I send emails by making the actual sending computer an email server?
I'm sure I should use some libraries, I heard about ChillKat or something like that.
Could anyone explain / help me out? Would be very much appreciated.
- the library - commons-email, built ontop of the harder to use JavaMail
- the servers
- James - java based
- Postfix - for unix/linux (howto)
- many more - there are many smtp servers. Each requires some non-trivial configurations before you can use it in production. It is better to turn to an administrator for this.
James is a very powerful email server base on Java which with you can use the JavaMail API. Moreover James integrate the mailet API which is very usefull to improve the functionality of your mail server. You can configure it to set the gateway on gmail easily changing the config file. (see this topic)
You can find a very good tuto here about James and mailet: Working with James
精彩评论