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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Sending email without authentication" Watch "Sending email without authentication" New topic
Author

Sending email without authentication

Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Hi guys,

I am writing some Java code to send an email out.
I don't want to use authentication, so I wrote:



But, my question is, how can I configure my account on the mail server in a way that it does not require authentication? Because every email must have password.
I am using smtp.gmail for sending.

Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18165
    
    8

That's a question about the server, right? So you would at least have to tell us the name of the server. And I would expect the server to come with documentation to tell the administrator how to do things like that.

(Yes, that would be an administrator function. You don't want users giving themselves uncontrolled access to your server.)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Gmail can't be used without authentication, period.


Ping & DNS - updated with new look and Ping home screen widget
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Paul Clapham wrote:That's a question about the server, right? So you would at least have to tell us the name of the server. And I would expect the server to come with documentation to tell the administrator how to do things like that.

(Yes, that would be an administrator function. You don't want users giving themselves uncontrolled access to your server.)


Yes, and the server is smtp.gmail.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending email without authentication
 
Similar Threads
javax mail AuthenticationFailedException
illlegal address exception.
Java Mail API Beginner Question
JavaMail w/ Tomat problem
JavaMail w/ Tomat problem