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
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 13842

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: 32769
Gmail can't be used without authentication, period.


Android appsImageJ pluginsJava web charts
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
 
 
subject: Sending email without authentication
 
Threads others viewed
illlegal address exception.
Java Mail API Beginner Question
JavaMail w/ Tomat problem
javax mail AuthenticationFailedException
JavaMail w/ Tomat problem
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com