I use the localhost ( for sending mail in with C#. The code runs successfully. The message is displayed that the mail is sent successfully. However, I do not receive any new mail. Could you please help me for that?

No correct solution


Without seeing any code, it's hard to say exactly what's going on. There are two obvious possibilities:

  • Your code to send the mail could be broken, failing to notice errors
  • Your server may not be configured properly to send mail

It's probably worth trying the second idea first. If you use a standalone mail client (e.g. Thunderbird) and set the SMTP server to your ASP.NET server, can you send mail to yourself that way? Have you deliberately set up the server to work properly as an SMTP server?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow