I have a contact form for people to send me email.
1. I tried it using my email but didn't receive anything.
2. I want a confirmation message to appear for the user when they send an email, how do i do that?
I created the contact form using textbox control and not the Wizard in VS 2008.
Here's the code i have in contact page.
protected void PageLoad(object sender, EventArgs e)
{
if (IsPostBack)
{
SmtpClient sc = new SmtpClient("smtp.DOMAIN.com");
StringBuilder sb = new StringBuilder();
MailMessage msg = null;
sb.Append("Email from: " + txtEmail.Text + "\n");
sb.Append("Message: " + txtMessage.Text + "\n");
try
{
msg = new MailMessage(txtEm ...
Go to the complete details ...