The moose likes Other JSE/JEE APIs and the fly likes Sending mail thru JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 35220
    
    7
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).


Android appsImageJ pluginsJava web charts
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: 35220
    
    7
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Sending mail thru JAVA
 
Similar Threads
Payment
Problem With SMTP Server
Java Mail API / getDefaultInstance and Authenticator
SMTP protocol : please help !
problem in sending mail