aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Sending mail thru JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Sending mail thru JAVA" Watch "Sending mail thru JAVA" New topic
Author

Sending mail thru JAVA

Gurvinder Singh
Greenhorn

Joined: Nov 10, 2008
Posts: 27
Hi i want to test email functionality in my application through java code. i usually test it through my company's smtp server when i m in office.
But i m not able to test it at home.
So is there any free smtp server available to test email things which does not require basic authentication.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
I don't think there are any publicly accessible mail servers left that don't require authentication these days. But it's quite easy to run a mail server on your own machine, e.g. Apache James (which is even written in Java, so you could embed it in your application).


Ping & DNS - my free Android networking tools app
Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

Hi Friend,
I think this link will help you Just copy the example and run it in your browser.

This link for accessing Gmail account.web page


Java Best Practices
Linux Best Practices
Amortization Calculator

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
This link for accessing Gmail account.web page

GMail requires authentication, so this doesn't really address the question.
Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

In similar way you can try the bellow code.
 
wood burning stoves
 
subject: Sending mail thru JAVA