views:

698

answers:

5

Hi.
I want to test JavaMail. So i need a Mailserver.. i tested on localhost. So are there any free Mailservers i can use ?

A: 

Sign up for a Gmail account and then use the settings there. See this page for more details:

http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

That gives you an SMTP server.

Jon
A: 

Does your ISP provide you a free mail service? One which only allows sending from one of their IPs?

Don't know what SMTP Auth support is like in JavaMail but you might be able to use gmail's smtp if you have an account.

John Barrett
+1  A: 

Have you looked at Apache James ? This is a Java mail server, which means you may be able to run it up temporarily as part of your unit test setup (and obviously take it down afterwards)

Brian Agnew
+1  A: 

I'm after a 'real' test endpoint so will have a look at James, but could do with something a bit more lightweight.

Previously I have used 'Mock JavaMail' which you drop into your classpath and it works as an in-memory mail store for all accounts & message. https://mock-javamail.dev.java.net/

Wayne
A: 

I like "test mail server tool". It runs on your pc as a mailserver, writes emails out to a folder somewhere and you can set it to popup a window when an email comes in.

http://www.toolheap.com/test-mail-server-tool/

Adam Butler