Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Authenticate user before sending mail using javamail api

 
zimbu bolleddu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
How to authenticate a user his/her credentials are correct or not,
before sending a message(mail) using javamail API.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

An excellent introduction to JavaMail -which includes many code examples, including authentication- is at http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
 
zimbu bolleddu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok..

Im very many thanks for your reply ...

and this is very useful for me but,

I unable to do what I want.

My requirement is :

This is my input :

user name : some@some.com
password : password

output should be Success or failure,

please help me out in this area, I'm new to the programming.

please provide Example.


Thank you very much ....
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to check the credentials beforehand? You can just use them to send the mail, and then handle the exception if they're not valid.
 
zimbu bolleddu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah I know that well,

But I want make my login page itself working as a email login,

so thats why, I need that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!