This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to SMTP user and password ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to SMTP user and password ?" Watch "How to SMTP user and password ?" New topic
Author

How to SMTP user and password ?

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
Hi,

Am want to write a program to send mail from java program. I got code from google SMTP client program but in that program

PasswordAuthentication(username, password) is there . My problem is what too create username and password for SMTP server
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You sign on to your server as an administrator and go through its process to set up a user. How exactly you do that, depends on your server.

Or do you already have an account on some server? If you do, then just use that account's user ID and password. At any rate the answer has nothing to do with Java programming.
Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
Hi Paul,

When i am using gmail smtp servername and my username and password its working my aim is not that. I want send mail from my pc (LocalHost) for that perpuse what i have to do please give me reply
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
You can run a mail server on your machine. Most Unix/Linux versions come with sendmail, or you can use something like Apache James.


Ping & DNS - my free Android networking tools app
Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
Where i will get smtp mail servers for windows xp
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Ulf Dittmer wrote:...or you can use something like Apache James.
 
jQuery in Action, 2nd edition
 
subject: How to SMTP user and password ?
 
Similar Threads
Aspirin Cannot Send Mails
how to call outlook express mail message window
Mail without authentication
Call a Servlet from JSP
how to send email through servlet using java mail API