|
| |
|
|
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
|
|
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
|
|
|