asp.net send mail
hai

  i am writing a program to send mail using asp.net, it gives me error as 
The "SendUsing" configuration value is invalid.here is my code

protected void Button2_Click(object sender, EventArgs e)
    {
        MailMessage msg = new MailMessage();
        msg.To = "msangita@tricx.co.in";
        msg.From = "msangita@tricx.co.in";
        msg.Subject = "hello";
        SmtpMail.Send(msg);
    }
asp.net send mail
===

hai

  i am writing a program to send mail using asp.net, it gives me error as 
The "SendUsing" configuration value is invalid.here is my code

protected void Button2_Click(object sender, EventArgs e)
    {
        MailMessage msg = new MailMessage();
        msg.To = "msangita@tricx.co.in";
        msg.From = "msangita@tricx.co.in";
        msg.Subject = "hello";
        SmtpMail.Send(msg);
    }