Imar-
I FINALLY GOT IT TO WORK!!!!
i think it was a problem with the registry and permissions, but now it works. One problem, though, this online form is supposed to send the results of the form to a database and will also send an email confirmation. It correctly sends the results to the database, however the email aspect of it is not working.
This is the error email that I get:
-------------------------------------------
The following message arrived with illegal envelope data, typically a
mangled address that doesn't obey the RFC822/976 protocol specification.
If you do not recognize the source of the bad header, perhaps you should
contact a Postmaster at your site and ask why your mail was rejected.
Your message is being returned unprocessed.
The following annotated envelope headers illustrate the error(s):
Error in "to" envelope address:
<@advocatehealth.com>
^-illegal token in route, expected word, illegal end of route address
Error in "Cc" header address:
<@advocatehealth.com>
^-illegal token in route, expected word, illegal end of route address
----------------------------------------------------------
Below is the code that I have:
----------------------------------------------------------
Dim objCDOSYSMail
Dim strFrom
Dim strTo
Dim strCc
Dim strBcc
Dim strSubject
Dim strBody
strFrom=Request.Form("ReqEmail")& "@advocatehealth.com"
strTo="
[email protected]"
strSubject = "Research Request Confirmation Page"
strCc=Request.Form("VPEMail") & "@advocatehealth.com"
strBcc=Request.Form("ReqEmail") & "@advocatehealth.com"
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
objCDOSYSMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "moat.advocatehealth.com"
objCDOSYSMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
objCDOSYSMail.Configuration.Fields.Update
objCDOSYSMail.From=strFrom
objCDOSYSMail.To=strTo
objCDOSYSMail.Cc=strCc
objCDOSYSMail.Bcc=strBcc
objCDOSYSMail.Subject=strSubject
objCDOSYSMail.TextBody=strBody
objCDOSYSMail.Send
----------------------------------------------------------
What do you think?