Unanswered: Need help sending email with cdo
I am trying to send emails from my asp page with cdo but keep getting the following error:
An error occurred on the server when processing the URL. Please contact the system administrator.
The host of the website is btconnect and i have phoned them to check the server settings which they say are correct. My code is as follows:
Any help or advice would be appreciated
Set oMail = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.btconnect.com"
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
Set oMail.Configuration = iConf
oMail.To = "email@example.com"
oMail.From = "firstname.lastname@example.org"
oMail.Subject = "Test"
oMail.HTMLBody = "Test Message"
Set iConf = Nothing
Set Flds = Nothing