File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes local SMTP server for testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "local SMTP server for testing" Watch "local SMTP server for testing" New topic

local SMTP server for testing

J. Kevin Robbins

Joined: Dec 16, 2010
Posts: 1522

I'm working on an application that sends emails upon certain events. It expects to be on a server with SMTP running which I don't have on my local Windows 7 system. That makes it hard to debug.

I found this list on SO of small, free SMTP servers, but before I start working my way down the list I thought I'd ask here to see if others have solved this issue and have some suggestions.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Does your application really require the SMTP server to be on the same physical machine? That seems a bit restrictive to me. If it doesn't require that, then you can test with any SMTP server which you have access to.

Of course that might not help if you don't have any SMTP servers anywhere in your LAN, but you might be able to access a public SMTP server instead.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I used the James open source server from Apache for a few years. Looks like they have added a lot since then.

I agree. Here's the link:
subject: local SMTP server for testing
It's not a secret anymore!