Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes smtp username/password for JavaMail 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 » Beginning Java
Bookmark "smtp username/password for JavaMail" Watch "smtp username/password for JavaMail" New topic
Author

smtp username/password for JavaMail

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732


This code was working well on my dedicated server but know I am working on VPS.
My server provided said the previously it was open smtp but now there is username and password for smtp server.
How can I set username/password that I have in the above mentioned code?

Any help will be highly appreciated

The OS=CentOS Enterprise Linux 5.x

Thanks & best regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
Check out the extensive tutorial with many code examples; it deals with authentication.


Ping & DNS - my free Android networking tools app
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Ulf Dittmer wrote:Check out the extensive tutorial with many code examples; it deals with authentication.


Thanks a lot

The problem solved

 
 
subject: smtp username/password for JavaMail
 
Similar Threads
Getting exception in sending Email from Servlet
sending mail with JavaMail
Javamail: Problem sending attachments
JavaMail and Gmail
Java Mail API not connecting me from my tomcat server