Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS's SMTP server can't send out email

Status
Not open for further replies.

multiplex77

Programmer
Dec 25, 2001
302
SG
Hi,

I've an ASP application running on IIS 5 that is using CDONTS to send out emails. But I can't seem to get it to send out emails on my client's server. It just doesn't send out when the email function is called.

So I tried going to Default SMTP Server's Smart host and entered the SMTP server IP address. But it still doesn't send. I don't know if and where the error message is stored.

My client says there is no firewall blocking the sending out of email.

My questions:
1. How really does IIS send out email? Isn't it using it's own SMTP server? So why do I even have to type in a smarthost?

2. Could it be because my client's SMTP server requires authentication before sending out email?

On the server in my office, it sends out fine without needing any smart host. And I know that my SMTP server (though not specified in the smart host) DOES require outgoing mail authentication.

Hope someone could shed some light on this. Thanks very much!
 
Go into the event viewer on the server and check the system log to see what smtp errors you are getting. Posting the errors will allow us to help you better.

1. Yes IIS will use its own SMTP server, a smarthost is basically just a relay that you send all mail to and it will do the DNS lookups and route the mail. It is typically best to use an actual email server as a smart host if available.

2. Yes that could be the reason, but a connection refused message for SMTP should appear in the evenet viewer.
 
are you sure that cdonts is installed, because it is not installed auto with iis 5. you may have to get it and install it.
 
I've never had to install CDONTS with IIS 5 but it is installed.

You have to set relaying to allow the localhost to relay.
 
I had the same problem over here. Had to do with security settings on mailroot in the directory. Everyone must have "full control" on this directory.

Hope this will help.
 
Thanks for all your help. It seems like the problem lies with IIS' SMTP service not installed. I'm quite perplexed too, cos I thought it installs it by default.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top