I am making an application that basically let the user log into its gmail account and send email. My user interface will contain username textbox and password textbox, and log in button. If the user type in the correct username and password, it will take the user to another user interface where the user can send email to another gmail user. What I want to know is, on my first user interface, how can I authenticate the username(gmail username) and password that the user type in? I've been looking over the net how to do it. I could not find it unfortunately. Please help me out. Thanks in advance.
Saing
Saing
Kirtan PatelPosted May 8, 2011, 10:05 AM
when you are sending mail it includes authentication process in SmtpClient class .so if you want to do that process seperatly to check that user have provided Username and password correctly or not then when user provide Username nad pasword in First form just send an email and check if it throws credentials related exception then provided Uname and pass are wrong ..if mails successfully with that credentials then username and password are corerct you can go ahead in next form .when you can send mail using same username password :)
Suthish NairPosted May 8, 2011, 9:11 AM
Kirtan PatelPosted May 8, 2011, 8:35 AM
Suthish NairPosted May 8, 2011, 8:25 AM
Shirsendu NandiPosted May 8, 2011, 6:17 AM