Chris Levis
01-09-2002, 08:11 AM
When using asp to send with CDONTS to a valid address in the domain, the message gets stuffed into the inetpubmailrootpickup directory, but it just sits there and nothing happens with it. No errors are passed.
I'm running IIS 5 and Exchange 5.5 on the same box. I need to find out - with your help - how to get Exchange to pick up this CDONTS generated mail and send it away.
I'm using the sample code provided by Microsoft, as follows:<BR><BR>
<font size="-1">
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim lngImportance
strFrom=request.form("txtFrom")
strTo=request.form("txtTo")
strSubject = request.form("txtSubject")
strBody=request.form("txtMessage")
lngImportance = request.form("optImportance")
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,lngImportance
Set myCDONTSMail = Nothing
Response.Write "Mail has been sent."
</font><BR><BR>
This sample code works fine on another box runnning IIS 5 and "Default SMTP Service."
Thanks for any and all help.
I'm running IIS 5 and Exchange 5.5 on the same box. I need to find out - with your help - how to get Exchange to pick up this CDONTS generated mail and send it away.
I'm using the sample code provided by Microsoft, as follows:<BR><BR>
<font size="-1">
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
Dim lngImportance
strFrom=request.form("txtFrom")
strTo=request.form("txtTo")
strSubject = request.form("txtSubject")
strBody=request.form("txtMessage")
lngImportance = request.form("optImportance")
Set myCDONTSMail = CreateObject("CDONTS.NewMail")
myCDONTSMail.Send strFrom,strTo,strSubject,strBody,lngImportance
Set myCDONTSMail = Nothing
Response.Write "Mail has been sent."
</font><BR><BR>
This sample code works fine on another box runnning IIS 5 and "Default SMTP Service."
Thanks for any and all help.