Question : mail sent using asp and iis5.1 goes directly to badmail folder

Hello!
I cant send mail using iis 5.1 using win xp pro
I am sure the problems is in iis somewhere because i get no error using my asp code, and the mail im trying to send is ending up in my badmail folder.

The aps code i use looks like this:

<%
Set Mail=Server.CreateObject("CDONTS.NewMail")
Mail.To="cmaster86@hotmail.com"  
Mail.From=""
Mail.Subject="testing my script"
Mail.Body="Sending email from asp, but having no luck"
if Mail.Send()=0 then
      response.Write("'#00FF00'>OK!")
      else
      response.Write("'#FF0000'>Something's wrong!")
end if
Set Mail=nothing
'Response.Redirect "default.asp"

%>
I've downloaded and registered cdonts.dll as i didnt get cdosys to work.

Ive looked at lots of topics at this page but didnt find the answer to my problem.

Regards

//Markus

Answer : mail sent using asp and iis5.1 goes directly to badmail folder

>why do i get this message from smtpdiag?
because you're not running an Active Directory domain.  You can completely ignore that message.
it's why I said we're only interested in the process that does the mx record lookup and the sending of mail. The tool will test everything from an IIS SMTP install to an Exchange SMTP install within an Active Directory Domain structure.

Regarding your concerns about DNS, as I said in my last post,
This section:
>Checking MX records using TCP: karolinerna.no-ip.org.
>Checking MX records using UDP: karolinerna.no-ip.org.
>Both TCP and UDP queries succeeded. Remote DNS test passed.
says that a lookup of the mx record for karolinerna.no-ip.org via dns was successful and your dns looks ok.

>Now i finally manage to send mail to myself both from my own server and from my hotmailadress, but i still cant send mail from my server to my hotmail.
this is good, this means that your smtp is working.  With the email you successfully sent to yourself, were you sending to an email address within the karolinerna.no-ip.org domain?  If that was successful, it could just be that delivery to addresses that are not local is blocked.

It could be that hotmail is blocking your dynamic dns range - often spam originates from non-fixed IPs so this is relatively common.  Are you still getting the same error messages on these?
Random Solutions  
 
programming4us programming4us