Hi, I need your help.

I've set up the virtual smtp server on my IIS 5.1 like so:

1. Assign IP address to "All Unassigned", and listen to port 25.
2. Access Connection granted to "127.0.0.1".
3. Relay only allow "127.0.0.1".
4. Authentication: "Anonymous access" only.
5. Outbound connection listen to TCP 25.

I used the following code, and

Response.Write("Your E-mail has been sent sucessfully - Thank You")

is executed and I don't see any exception.

However, the mail never arrived!

So, what's the problem?


Code:
<%

schema = "http://schemas.microsoft.com/cdo/configuration/"
Set objEmail = CreateObject("CDO.Message")
With objEmail
.From = "***@mydomain.com"
.To = "***@mydomain.com"
.Subject = "Test Mail"
.Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog"
With .Configuration.Fields
.Item (schema & "sendusing") = 2
.Item (schema & "smtpserver") = "localhost"
.Item (schema & "smtpserverport") = 25
.Item (schema & "smtpconnectiontimeout") = 10
End With
.Configuration.Fields.Update
on error resume next
   .Send
   if Err.Number <> 0 then
     Response.Write("Email send failed # : " & Err.Number & " -  " & Err.Description & ".<br />"&vbcrlf)
   else
     Response.Write("Your E-mail has been sent sucessfully - Thank You.<br />"&vbcrlf)
   end if     
End With

%>