navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

cdo email

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> cdo email
Page: [1]
 
carrie

 

Posts: 251
From: Port Orange, FL Volusia
Status: offline

 
cdo email - 8/11/2008 21:10:34   
Hi all,

Another problem has arisen on one of our webservers, and I am certain I will have to tell tech support how to fix it. Problem is, I don't know what to tell them yet, but they have proven themselves incompetent time and time again, and their current attempts have not worked.

Our cdo webmail forms will not send to our own domain. This is because we host our email on a different server than our website. When the web form tries to send to our email addresses, it can't find them on it's own server - because they are somewhere else. It throws the dreaded cryptic 'error '8004020f' The problem makes sense. The script will send to other domains, just not ours. It's a Windows server - the code I'm using is below. What can I tell them [tech support] to clue them in?

<% '''''''''''Email Script

recipients = "carrie@mywebsite.com"
email = "carrie@otherdomain.com"
subject = "Test form from WebHost" 'on domain mywebsite.com
body = "test"
sMailServer = "localhost"

sTo = recipients
sFrom = email 'Trim(Request.Form("txtFrom"))
sSubject = subject
sMailServer = "localhost"
sBody = body
Set objMail = Server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields

With objFields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With

With objMail
Set .Configuration = objConf
.From = sFrom
.To = sTO
.Subject = sSubject
.HTMLBody = sBody
End With
objMail.Send
%>


Or, if there is simply a way to alter the script to make it work despite this issue, I'm all ears.

Thanks in advance,
Carrie
BeTheBall

 

Posts: 6381
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: cdo email - 8/11/2008 23:28:59   
This help any?

http://classicasp.aspfaq.com/email/why-does-cdo-message-give-me-8004020f-errors.html

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to carrie)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> cdo email
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts