Hi all,
i have a problem in my project which was developed by Asp.net with c# language
i got a given below error in my code below, please have you look at my code below and let me know why its happened in my code behind.
error:
No overload for method 'Send' takes '5' arguments
Aspx.cs code is:
 
  protected void ImgBtnSubmit_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
         
            string toadd = "info@abc.co.uk";
            var fromAddress = "info@abc.co.uk";
           
            var toAddress = toadd;
            const string fromPassword = "abc";
            string subject = "Contact";
        
            string bcc = "xyz@abc.co.uk";
            string body = "<table border=1><tr><td> Name </td><td>" + txtname.Text + "</td></tr>" +
                    "<tr><td> Telephone </td><td> " + txttel.Text + "</td></tr>" +
                    "<tr><td> Mobile </td><td> " + txtmobile.Text + "</td></tr>" +
                    "<tr><td> Email </td><td> " + txtemail.Text + "</td></tr>" +
                    "<tr><td> Query </td><td> " + txtquery.Text + "</td></tr></table>";
            var smtp = new System.Net.Mail.SmtpClient();
            {
                smtp.Host = "mail.abc.co.uk";
                smtp.Port = 25;
                smtp.EnableSsl = false;
                smtp.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
                smtp.Credentials = new NetworkCredential(fromAddress, fromPassword);
                smtp.Timeout = 20000;
            }
            smtp.Send(fromAddress,toAddress,bcc, subject,body);  // here am getting above mentioned error
 
            Response.Redirect("replycontact.aspx");
        
            txtname.Text = "";
            txttel.Text = "";
            txtmobile.Text = "";
            txtemail.Text = "";
            txtquery.Text = "";
        }
        catch (Exception) { }
    }
thanks in advance.