Posted on: 10/26/2012 1:54:57 AM | Views : 218

whenever i try to send an email with HTML format the email doesn't send.  Anyone know what im doing wrong?


protected void emailButton_Click(object sender, EventArgs e) { if (Page.IsValid) { // Page has valid info // send email // Create Message MailMessage messageObject = new MailMessage(); messageObject.To.Add( new MailAddress("test@gmail.com", "Software" )); messageObject.From = new MailAddress(emailTextBox.Text, companyTextBox.Text); messageObject.Subject = "[ traGic Software ] - " + subjectTextBox.Text; messageObject.IsBodyHtml = true; messageObject.Body = GetFormattedMessageHTML(); SmtpClient smtpClient = new SmtpClient(); smtpClient.Send(messageObject); } else ...

Go to the complete details ...