I've been having a similar problem to the other cdonts question under me. I've been trying to send an email using really simple asp code- see below:
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
HTML = "This is an email message with CDONTS. It is really easy. "
'start emailing!!
'email to person logged in first...
strFrom = "dbromberg@exeter.edu"
strTo = "dbromberg@yahoo.com"
strSubject = "How TO send email with CDONTS"
strBody = HTML
Set myCDONTSMail = CreateObject("CDONTS.NewMail"
myCDONTSMail.Send strFrom,strTo,strSubject,strBody
Response.write("Mail was Sent"
Set myCDONTSMail = Nothing
%>
Anyway, when I run it, it says "Mail was Sent" just fine, but I never receive the email at dbromberg@yahoo.com. From reading your post about the badmail folder, I went into Mailroot in Inetpub and searched around and found all of my email messages in the Pickup folder. Anyone know why they are still in this folder and not sent? Do I need another program? I'm sure CDONTS is installed on my win nt 4 server (that's what's running this script), so why do they stay in that folder and how can I get them to send?
-dbromberg
<%
Dim myCDONTSMail
Dim strFrom
Dim strTo
Dim strSubject
Dim strMessage
HTML = "This is an email message with CDONTS. It is really easy. "
'start emailing!!
'email to person logged in first...
strFrom = "dbromberg@exeter.edu"
strTo = "dbromberg@yahoo.com"
strSubject = "How TO send email with CDONTS"
strBody = HTML
Set myCDONTSMail = CreateObject("CDONTS.NewMail"
myCDONTSMail.Send strFrom,strTo,strSubject,strBody
Response.write("Mail was Sent"
Set myCDONTSMail = Nothing
%>
Anyway, when I run it, it says "Mail was Sent" just fine, but I never receive the email at dbromberg@yahoo.com. From reading your post about the badmail folder, I went into Mailroot in Inetpub and searched around and found all of my email messages in the Pickup folder. Anyone know why they are still in this folder and not sent? Do I need another program? I'm sure CDONTS is installed on my win nt 4 server (that's what's running this script), so why do they stay in that folder and how can I get them to send?
-dbromberg