aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes How to configure localhost to send email. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to configure localhost to send email. " Watch "How to configure localhost to send email. " New topic
Author

How to configure localhost to send email.

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Hi,

I want to send email from localhost through javamail.

I am able to send the mail through Google smtp. Now I want to send it through localhost.

I have found out that there is a "James open source Java server" for sending email.
But I could not find any help on how to configure it.

I am using NetBeans and Tomcat7.0

any help...

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18881
    
    8

That's because only people who understand how Internet e-mail works, and more specifically what trouble you can cause by starting up a badly-secured SMTP server, should be doing that. I suspect that you don't; if you did then you would be likely to be able to look at the package and figure out how to set it up. So I recommend you not to set up your own mail server yet.
malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Well I agree with you.
But I want to do this only for test purposes.

Here is the code through which I can sent mail through gmail smtp,

if someone could tell me, anything about localhost smpt server that would be helpful.
I don't know which port or smtp host James java server use.

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
Any help...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

Are you lucky enough to be on a Mac? If so, you can just use the built-in postfix mailer. Start it with:

sudo postfix start

If you're on Windows, I don't have any suggestions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42595
    
  65
What, specifically. are you looking for that isn't covered somewhere around http://james.apache.org/server/2/index.html ?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure localhost to send email.