Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to configure localhost to send email.

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 25798
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help...
 
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, specifically. are you looking for that isn't covered somewhere around http://james.apache.org/server/2/index.html ?
 
mooooooo ..... tiny ad ....
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic