Author: sureshkumar_246 | Posted on: 2/13/2009 2:45:26 AM | Views : 255

Hi dis is suresh, i want to attach a file (upload) to the email to the below code code  can any 1 plz help me....

 
 
protected void Button1_Click(object sender, EventArgs e)
    {
        MailMessage msg = new MailMessage();
        msg.To = TextBox1.Text;
        msg.From = TextBox2.Text;
        msg.Subject = TextBox3.Text;
        msg.Body = TextBox4.Text;
        if (FileUpload1.HasFile)
        {
            FileUpload1.PostedFile.FileName("c:\\kumar\\" + FileUpload1.PostedFile.FileName);
        }
     &nb ...

Go to the complete details ...