Recently moved our site to Winhost. Our e-mail has been handled by google apps for a long time. Site works great. Configured domain to use google apps for e-mail and e-mail works great. Very happy with one exception. We cannot send an outbound e-mail from the site. We are attempting to send a simple order confirmation but are unable to do so. Has anyone written an ASP.net app to send outbound e-mail using google? We have tried the following: <% Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = "smtp.gmail.com" Mail.port = "587" Mail.Username = "[email protected]" Mail.Password = "PWORD" Mail.FromName = "[email protected]" Mail.From= "[email protected]" Mail.AddAddress "[email protected]" Mail.Subject = "This is a sample email sent from Persits ASPEMail" Mail.Body = "Congratulations" & VbCrLf & "If you receive this is, your mail component works" Mail.Send %> All e-mail addresses are valid and have been authenticated and used for several years. Any thoughts are appreciated. Anybody written something that works?
simply re-use code from the Kb article http://support.Winhost.com/KB/a650/how-to-send-email-in-aspnet.aspx I believe Gmail SMTP requires SSL, so you just have to insert it smtp.EnableSsl = true;