views:

231

answers:

1

JavaMail requires that you specify an external SMTP server when sending mail. I want to have my java app send email directly without having to use an external SMTP server such as postfix or sendmail.

Can anyone recommend a library which provides this kind of functionality? Ive done some googling and have come up with nothing.

+3  A: 

It's not trivial to send mail yourself. To start with, you have to deal with DNS (MX records), queuing, connection management and maybe signing (DKIM). So you wouldn't find any light-weight library like JavaMail to do this.

Your best bet is JAMES,

http://james.apache.org/

ZZ Coder