So, you have a good code, what is your problem. Check Stored Procedure before Sending a mail.
ie.
First Check that if email id exists or not which you have done in below step.
int rowcount = ds.Tables[0].Rows.Count;
if (rowcount > 0)
Now just place an Else block and print a message, "This Email ID is not associated with us, Register here."
John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com
Reddysankark@Yahoo.Com, if this helps please login to Mark As Answer. |
Reply | Alert Moderator