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") ="[email protected]" Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="drrak1234" Flds.update Set objMessage.Configuration = objConfig objMessage.To = "[email protected]" 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 %>
This line is incorrect: Flds.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="[email protected]" 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") ="[email protected]" Now, bear in mind that the password maybe different. I really not sure what your password for [email protected] it may not be the same as [email protected]. If you do not know the password for [email protected] you can reset it in the webmail for [email protected].