This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Proble in sending email thru java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Proble in sending email thru java program" Watch "Proble in sending email thru java program" New topic
Author

Proble in sending email thru java program

Mike Thomson
Ranch Hand

Joined: Nov 07, 2007
Posts: 115
I am trying to send a email through a ajava program. But I want to test it in my machine. How to test it? I am having outlook express in my pc and how to configure the mail host and settings. i an using the below program;


Config file:

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41632
    
  55
What do you mean by "testing on your machine" - do you want to run a mail server locally? While that's certainly possible -look into Apache James for that- it shouldn't be necessary. The mail server you use with Outlook should work fine. You need to set the mail.smtp.host property with the host name of the mail server, and you may need an Authenticator for supplying the password to go with the email address. You'll find many code samples and further implementation details here.

Let's move this to the Other Java APIs forum where JavaMail gets discussed.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Proble in sending email thru java program