Groups | Blog | Home
all groups > iis smtp nntp > july 2004 >

iis smtp nntp : Cannot send out email from SMTP, help!


Quentin Huo
7/2/2004 4:53:52 PM
Hi:

I tried to send email from an ASP.NET page through SMTP. But I always got
the error:


Server Error in '/' Application.
----------------------------------------------------------------------------
----

The transport failed to connect to the server.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
.......



my code is write in C#, my system is win2003server:

MailMessage mm = new MailMessage();


mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtsperver","l
ocalhost");

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport
", 25);

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing",
2);

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthentica
te", 2);

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
"Administrator");

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
"pw for Administrator");

......

SmtpMail.SmtpServer = "localhost;

SmtpMail.Send(mm);



If I set the access authentication be "Anonymous", it works. (But I cannot
use this setting because of security issue.)

Where is the problem? I need help.



Thanks a lot!



Q.









Tim Meers
7/7/2004 10:28:33 PM
This helped me out a ton.
http://www.ilopia.com/Articles/WindowsServer2003/EmailServer.aspx#ConfigureEmailClient

Tim Meers


[quoted text, click to view]

penghao98 NO[at]SPAM hotmail.com
7/8/2004 9:40:03 AM
I am having similar problem, I am trying to send email on window 2000
with all default setting, I am not getting any errors but I noted all
the mails got into queue never go out, so I am wondering if there are
something need to be configured or set.
Thanks for your help






[quoted text, click to view]
AddThis Social Bookmark Button