Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to configure localhost to send email.

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 26963
84
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any help...
 
Sheriff
Posts: 67620
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic