views:

2

answers:

0

I am very new to ruby on rails. in my ror application there is a form. where the user can enter a gmail address and password and send email to other user using gmail smtp server.It is working well.

But, the problem is if the user enters the wrong password my application is not showing any error... and the mail is not sent.

My question is how can i catch the error from the google smtp server for wrong password ?? Is there any way?