I'm trying to send simple CDO mail from our NT 4.0 server. We have IIS 4.0 installed and the script below does not return any errors, so that would suggest CDO is installed. However, when the script is run, the "Mail is sent" thing pops up like it should, but upon checking email at the place where the email is specified to be sent, no email arrives. Any reason why this would be happening?
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = "dbromberg@yahoo.com"
objMail.Subject = "How TO send email with CDONTS"
objMail.To = "dbromberg@yahoo.com"
objMail.Body = "This is an email message" & vbcrlf&_
"with CDONTS." & vbcrlf&_
"It is really easy. "
objMail.Send
Response.write("Mail was Sent"
'You must always do this with CDONTS.
set objMail = nothing
%>
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = "dbromberg@yahoo.com"
objMail.Subject = "How TO send email with CDONTS"
objMail.To = "dbromberg@yahoo.com"
objMail.Body = "This is an email message" & vbcrlf&_
"with CDONTS." & vbcrlf&_
"It is really easy. "
objMail.Send
Response.write("Mail was Sent"
'You must always do this with CDONTS.
set objMail = nothing
%>