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)
};
SmtpClient server = new SmtpClient();
server.Send(Email);