i am trying to send an email using asp classic. using the code below, i get no errors. however the emails do not arrive at all. all messages are directly sent to my BadMail folder. any ideas as to why this is happening?
<%
Set ObjSendMail = CreateObject("CDO.Message")
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "d:\Inetpub\mailroot\Pickup"
ObjSendMail.Configuration.Fields.Update
ObjSendMail.From = "myemail@domain.com"
ObjSendMail.To = "targetemail@anotherdomain.com"
ObjSendMail.Subject = "TEST EMAIL"
ObjSendMail.TextBody="This is a message."
ObjSendMail.Send
set ObjSendMail=nothing
%>