Hi, here's the site I'm currently working on: [code]http://www.johnernaut.com[/code] Under the 'contact' tab I have some behind the scenes C# code that SHOULD send me an email whenever the submit button is pressed and all fields are validated. This isn't working for some reason. The host I'm using is GoDaddy. I've looked up the smtp host / port and it should be working fine, but it's not. Here's my code: [code=c#] protected void SendMail() { MailMessage mail = new MailMessage(); mail.From = new MailAddress(txtEmail.Text); mail.To.Add("myemail@gmail.com"); mail.Subject = "Contact Me"; mail.IsBodyHtml = true; mail.Body = "From: " + txtName.Text + "<br …

Member Avatar
Member Avatar
+0 forum 8

I am trying to send an email message in HTML Format. I have a richtextbox the the user can change the color and font in the message. Below is the code I am using which ends up send in Text Format. Most codes I have found use System.WebMail which in vb 2008 is obsolete. This snippet is using System.Net.Mail namespace. [code] Public Shared Function SendEmailMessage(ByVal sendTo As String, _ ByVal sendFrom As String, _ ByVal sendSubject As String, _ ByVal sendMessage As String, _ Optional ByVal toBcc As ArrayList = Nothing, _ Optional ByVal attachments As ArrayList = Nothing) As …

Member Avatar
Member Avatar
+0 forum 2

The End.