Kevin,
Usual cause if SMTP does not allow relay. You have to specifically
enable this through the IIS console.
I send mail from an XP this way - it doesn't seem to make any
difference if DHCP or static addresses used.
BTW - you don't have to use the local SMTP server to send mail from an
ASP page, you can use any SMTP server you can relay through, for
example your company's mail server or ISP server like so:
SmtpMail.SmtpServer = "smtp.myisp.com";
SmtpMail.Send( mail );
HTH
Charles
"kevin" <kyu@dotnet.itags.org.nrcan.gc.ca> wrote in message
news:#q5BEdEWDHA.2224@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> what is the requirement for asp.net to send email throught
localhost? I try
> to send mail from asp.net page, but got exception, then I found that
the
> SMTP virtual server is not started and the xp box use DHCP to get
its ip, is
> that the cause? theoretically it need a static ip to run smtp, but
is it
> possible to run it with dump ip like 192.168..?
> thanksThanks Charles. it works now.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
0 comments:
Post a Comment