I am moving my web files to a new (Win2003) server which is seperate from the box that holds my email server. I am having trouble with the 'Contact Us' kinds of pages that used to use CDONTS but now use CDOSYS. I believe the problem is the sendusing deal but it may be a port issue. Here is my code:
code:--------------------------------------------------------------------------------
Dim iMail, iConf, Flds
Dim sMsg, sName, sEmail, sSubject
sName = Request.Form.Item("name")
sEmail = Request.Form.Item("email")
sSubject = Request.Form.Item("subject")
sMsg = "From: " & sName & vbCrLf
sMsg = sMsg & "Email: " & sEmail & vbCrLf & vbCrLf
sMsg = sMsg & Request.Form.Item("message")
Set iMail = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds " = 3
Flds.Update
Set iMail.Configuration = iConf
With iMail
.To = "me@mydomain.com"
.From = sEmail
.Subject = sSubject
.TextBody = sMsg
.Send
End With
Set iMail = Nothing
Set iConf = Nothing
Set Flds = Nothing
--------------------------------------------------------------------------------
I am open to suggestions. Thanks in advance!!!
code:--------------------------------------------------------------------------------
Dim iMail, iConf, Flds
Dim sMsg, sName, sEmail, sSubject
sName = Request.Form.Item("name")
sEmail = Request.Form.Item("email")
sSubject = Request.Form.Item("subject")
sMsg = "From: " & sName & vbCrLf
sMsg = sMsg & "Email: " & sEmail & vbCrLf & vbCrLf
sMsg = sMsg & Request.Form.Item("message")
Set iMail = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds " = 3
Flds.Update
Set iMail.Configuration = iConf
With iMail
.To = "me@mydomain.com"
.From = sEmail
.Subject = sSubject
.TextBody = sMsg
.Send
End With
Set iMail = Nothing
Set iConf = Nothing
Set Flds = Nothing
--------------------------------------------------------------------------------
I am open to suggestions. Thanks in advance!!!