Ok I have a web form with 3 text boxes: from, subject, and body then a submit button
my code behind looks like this:
public void SendEmail(string from, string subject, string body)
{
//try
//{
MailMessage NewEmail = new MailMessage();
NewEmail.From = new MailAddress(from);
NewEmail.To.Add(new MailAddress("name@server.com"));
NewEmail.Subject = subject;
NewEmail.Body = body;
NewEmail.IsBodyHtml = true;
SmtpClient mSmtpClient = new SmtpClient();
mSmtpClient.Send(NewEmail);
Go to the complete details ...