Author: DuncanGravill | Posted on: 9/18/2008 11:43:10 AM | Views : 303

Hi, i am new to Asp.net and C# and am trying to create a contact form which will then send an email to the website administrator. but the email is not getting sent, i have tried adding some catch blocks with exceptions but none of them seem to be getting thrown and i don't know why because something has to be wrong. i am using the same smtp server as i put into outlook when adding the email account i am using in the script to outlook (and it sends and recieves fine in outlook). i have tried putting in the wrong password deliberately to see if it will throw an exception but it hasn't. i am really not sure what i am getting wrong..
 if you can help me out of this problem it would be much appreciated.
thanks,
Duncan

here is my code..public void Send_Click(object sender, EventArgs e)
{
MailAddress from = new MailAddress( ...

Go to the complete details ...