I have gone through all threads on Winhost and tried everything but I am still unable to send an email to contact - I get 'failure to send email' error message. below is my code I substituted domain for my website and password for my password. MailMessage myMessage = new MailMessage(); myMessage.From = new MailAddress(sendEmail, sendName); myMessage.To.Add(new MailAddress("[email protected]")); myMessage.Subject = "Customer Contact"; myMessage.Body = mailBody; myMessage.IsBodyHtml = true; SmtpClient mySmtpClient = new SmtpClient(); NetworkCredential AuthenticationInfo = new NetworkCredential("[email protected]", "password"); mySmtpClient.Host = "mail.domain.com"; mySmtpClient.Port = 587; // 25 mySmtpClient.UseDefaultCredentials = false; mySmtpClient.Credentials = AuthenticationInfo; mySmtpClient.Send(myMessage);
Could you open up a support ticket so we could investigate further? Please include a URL of your web form.