Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

.Net Email Problem

  Asked By: Madeline    Date: Apr 26    Category: Asp.net    Views: 859
  

I'm having a problem sending Email from a web site.
What I'm trying to do is send an error reporting
email from the Application_Error() event in Global.asax.

I'm using: System.Web.Mail.SmtpMail.Send(from@..., to@..., "Errors", "This is a bad one!");

as a test in a Page_Load event. Absolutely nothing happens.
I'm running Windows 2000 Pro and I have the SMTP functionality
set up in IIS. Supposedly, Windows 2000 then acts as my mail server
and I should get a message back. But nothing!

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Garai Chalthoum     Answered On: Apr 26

i think you need to set the smtp server in code ( since RTM ... beta2 you didn't have to )

 
Answer #2    Answered By: Caitlin Brown     Answered On: Apr 26

The name of the e-mail server. If SmtpServer is not set, the name of the local SMTP server is used.

I tried that and it didn't work ... I had to set it to my isp mailserver.

You can use ip's aswell.

 
Answer #3    Answered By: Mamie Wallace     Answered On: Apr 26

That's what I was also seeing.
My default mail  server does
nothing.

 
Didn't find what you were looking for? Find more on .Net Email Problem Or get search suggestion and latest updates.




Tagged: