what about
Did you set
System.Web.Mail.SmtpMail.SmtpServer = "YourSMTPServerName" like
mail.mydomain.com or smtp.YourISPDomain.com

etc..



"Phan Nguyen" <quangbuu@fptnet.com.vn> wrote in message
news:%237uVslxtCHA.1644@TK2MSFTNGP09...
> Hello there,
>
> I try to send mail with the code below:
>
> MailMessage mail = new MailMessage();
> mail.To = "quangbuu@fptnet.com.vn";
> mail.From = "iis";
> mail.Subject = "Test Mail";
> mail.Body = "Testing ASP.NET mail";
> SmtpMail.Send(mail);
>
> The page compiled and run well but no mail is sent, however the mail is
> found in the mailroot\queue directory on my machine. I have tried many
times
> but ot does not work. I am appreciate any suggestions!
>
> I use WindowXp, IIS and Smtp server is running.
>
> Thank you in advance!
>
>
>
>
>