IIS6 SMTP problem

K

karakas

I wrote an asp code to send email by IIS6 SMTP service, but SMTP keeps emails
in the queue. Event viewer does not show any error.
thanks for any help
 
K

Kevin Spencer

Are you logging any events to the event viewer? If not, that would explain
the lack of events there. However, I'm puzzled as to why you didn't get any
run-time errors. Did you by any chance use "on error resume next" in your
code? That would suppress any and all run-tim errors. Generally a bad idea
to use it, for this very reason.

As I have very little to go on, I'll make a guess based on past experience.
SMTP servers can be a security nightmare, often used by SPAMMERs as a
launching point. For this reason, most SMTP servers these days have Relaying
turned OFF. Relaying is the property that either allows or disallows email
from a domain other than the local domain to be sent by the SMTP server. If
the return address in these emails is not from the local SMTP server's
domain, the emails would indeed be kept in the queue. Forever.

Turning Relaying ON can be problematic, but the IIS SMTP server can be
configured in several different ways to allow relaying in certain
situations.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
D

David Berry

The best way to get around that is to use CDOSYS instead of CDO for sending
your email using ASP. See http://www.aspfaq.com/show.asp?id=2026 for how to
do this. CDOSYS doesn't use the SMTP Server so you don't have to worry
about email getting stuck in the queue and you can turn off the SMTP
Service.
 
Top