Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to SMTP user and password ?

 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21137
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run a mail server on your machine. Most Unix/Linux versions come with sendmail, or you can use something like Apache James.
 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where i will get smtp mail servers for windows xp
 
Paul Clapham
Sheriff
Posts: 21137
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:...or you can use something like Apache James.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic