ASP E-Mail

Discussion in 'Email' started by william2, Feb 14, 2012.

  1. I am trying to set up a web site to have a visitor send me an inquiry via a form. I have replaced "mydomainname" with my actual domain and "password" with my Winhost password in the example below. This is part of the VB Code that I have created based on the Knowledge Base template:

    set Mailer = Server.CreateObject("Persits.MailSender")
    Mailer.Host = "mail.mydomainname.com"
    Mailer.Username = "[email protected]"
    Mailer.Password = "password"
    Mailer.FromName = "[email protected]"
    Mailer.From = "[email protected]"
    Mailer.Subject = subject
    Mailer.Body = body
    On Error Resume Next
    Mailer. Send
    If Err <> 0 Then ' error occurred
    Response.Write "Mail send failure. Error was " & Err.Description
    Else
    Response.Write "Mail sent..."
    end if

    I also want the e-mail sent to my Google E-Mail account vs. the Winhost Account.

    When I click on the Form Submit button and execute my VB code I get the following error message:
    "Mail send failure. Error was 503 Bad sequence of commands "

    Can someone assist me? Thanks.
     
    Last edited by a moderator: Oct 14, 2015
  2. rum

    rum Winhost Staff

    Please open a support ticket through our support portal and provide the instructions on how to replicate the issue / error on your site form our end.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page