need help with email script - thanks

Discussion in 'General troubleshooting' started by winhostdream123, Mar 15, 2010.

  1. Hello:

    I got this script for sending email from the Winhost website. I don't really understand email scripts very well, so I don't know if I have this set up correctly. But when I test it I get an error message which simply says:

    error '80040211'

    with no explaination.

    I've changed the username and password in the code below for privacy purposes.

    Can anybody suggest what might be wrong.

    <%
    dim objMessage
    dim objConfig, Flds
    set objMessage = createobject("cdo.message")
    set objConfig = createobject("cdo.configuration")
    Set Flds = objConfig.Fields

    Flds.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    Flds.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.makewebnoise.com"


    ' ' Passing SMTP authentication
    Flds.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
    Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="impactzone@hotmail.com"
    Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="drrak1234"

    Flds.update
    Set objMessage.Configuration = objConfig
    objMessage.To = "net-impactzone@hotmail.com"
    objMessage.From = request.form("form_address")


    objMessage.Subject = "New Task"
    objMessage.fields.update
    objMessage.HTMLBody = "This is a test sent from CDO using smtp authentication."
    objMessage.Send
    %>
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    This line is incorrect:

    Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="impactzone@hotmail.com"​

    If you are going to use our email server to send out email you will need to pass you POP account not your hotmail account.

    As an example:

    Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="postmaster@makewebnoise.com"​

    Now, bear in mind that the password maybe different. I really not sure what your password for postmaster@makewebnoise.com it may not be the same as impactzone@hotmail.com. If you do not know the password for postmaster@makewebnoise.com you can reset it in the webmail for postmaster@makewebnoise.com.
     

Share This Page