sanju reddy

sanju reddy

  • NA
  • 1
  • 3.3k

method name expected

Oct 9 2010 8:58 AM
hello,

I am writing a code for an email 
every thing is perfect but i am getting error like method name expected can u pls help me in this
MailMessage Email = new MailMessage()
        {
        Subject = "email from",
        body = txtMessage.Text,
        from = new MailAddress(txtEmail.Text, txtName.Text)
        };
        Email.To.Add(new MailAddress("[email protected]","prashanthi"));
        SmtpClient server = new SmtpClient();
        server.Send(Email);

Answers (2)