views:

113

answers:

2

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 that 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.

+3  A: 
  • 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.
Bozho
you should probably add Java Mail API. Although commons-email is built on top of it, it certainly is worth mentioning.
sfussenegger
I'll look into those, thanks.
Cris Carter
A: 

Hi,

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

Yannick L.
Thanks a lot for the info, I'll look into it.I'm kinda thinking that it might be easier to simply send the emails through gmail, even though they only allow 500 emails per day, I could just use 100 gmail accounts?
Cris Carter