GoDaddy Hosting and the CDO Mail Object

Well, my hosting upgrade was successful (I think) with just a couple glitches. *phew*

The one issue I had was in using the CDO Mail object (CDO.Message) to send email in asp pages. This is a necessary part of my shopping cart, but the page that sent an email to the customer was crashing (not very helpful, where software sales are concerned )

I was getting "error '8004020f'", which was described as an "unspecified error". Very helpful.

So I went to GoDaddy.com (my new hosting company) to see if I could find documentation on setting up CDO on their servers. NOTHING.

So then I ran some searches elsewhere, and found that lots of people have had problems getting CDO set up on GoDaddy servers. And that GoDaddy tech support people weren't particularly forthcoming with information on the subject.

Not a good sign.

So I played around with it, couldn't get it to work, and finally emailed GoDaddy support. Their reply scared me a bit:

Quote:
Unfortunately this is something that we are not able to provide much service support for, I'm sorry.



However, I kept reading, and in fact, although they claimed they couldn't give me tech support on that issue, they actually did give me exactly the information I needed. So, if you're stumped on getting CDO.Message object functioning on a GoDaddy hosting account, the following code may be helpful to you:

Quote:
Dim Mail
set Mail=server.createobject("CDO.Message")
Mail.From = sender email address
Mail.To= recipient email address
Mail.Subject = email subject
Mail.TextBody = email body
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") =2
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="relay-hosting.secureserver.net"
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =25
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") =1
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") =your email address
Mail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") =your email password

Mail.Configuration.Fields.Update
Mail.Send
set Mail=nothing



The thing that annoyed me was, there was nothing anywhere in their documentation about the smtp server address "relay-hosting.secureserver.net", which means if you don't already have insider information, the only way you can set up CDO is to initiate a tech support question.

Posted On May 17, 2005 at 7:49 AM    

Previous    Next

 
AddThis Social Bookmark Button

Doug's Random Thoughts

Everything from Soup to Nuts,
And Maybe Even More!


ABOUT ME

Current Posts

Blog Is Moving...
Emergency Room
Last Entry
Join The Chorus
Jeorge Sings A Hymn




My Links

Educational Software Solutions
My Playground
My Favorite Puzzle

Next Entries

Phishing By Phone?
More Phone Phishing
Reading Agatha Christie To Pass The Time...
'Amusing Ourselves To Death' by Neil Postman
Maine All State Music Festival

Previous Entries

Do Not Fear For I Have Redeemed You
The Lord Is Good To All
Theological, Theoretical, Practical
Grotonwood and Turnpike Traffic Jams
Farewell To Philex

Index and Search

Archive
Blog Search

Bible Index
Bible Search

Blog designed by Virtu Software