I need to send and Email when Any Message occurs I am trying to logg the errors once I logged it I need to send the Email to them..
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A compbination of ELMAH and System.Net.Mail…
ELMAH:
http://code.google.com/p/elmah/
System.Net.Mail Namespace:
http://msdn.microsoft.com/en-us/library/system.net.mail.aspx
In Code:
In Web.Config: