I know you already have this solved, but for others out there who might be
experiencing the same trouble, a little more info:
I am going under the assumption here that maybe you are using an ISP who
blocks direct SMTP connections.
When you were using Localhost, you said it got to your mail queue, so that
means the local IIS SMTP host is indeed up and running. IIS can only
deliver how it is configured to deliver, so without a smart host, IIS will
attempt direct delivery. In other words, if you send a message to
yahoo.com, IIS will attempt an outbound connection on port 25 (SMTP)
directly to Yahoo!'s mail servers. As soon as you put in your ISP's mail
server into SmtpMail.SmtpServer, it started connecting through your ISP and
thus the email got through. The other alternative in this scenario is to
configure IIS to use your ISP as a smart host (in Internet Services Manager,
right click Default SMTP Virtual Server, hit properties and under the
advanced button on the delivery tab, you can put your ISP's mail server in
that box.
HTH
"rh" <rh******@smci.com> wrote in message
news:OH****************@TK2MSFTNGP10.phx.gbl...
Here is more info: I just checked the Event Viewer-->System and it show a
Warning that says:
"Message delivery to the remote domain 'yahoo.com' failed for the
following reason: The remote server did not respond to a connection attempt."
"Cor Ligthert" <no************@planet.nl> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl... RH,
Some parts of your message bring me in doubt that you are using Smtp
mail. Can you show a little piece of code.
Cor