Has anyone written an ASP.net app to send outbound e-mail using google?

Discussion in 'Email' started by jlenau, Apr 30, 2012.

  1. 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?
     
    Last edited by a moderator: Oct 14, 2015
  2. Last edited by a moderator: Oct 14, 2015

Share This Page