Mail sending problem

Discussion in 'ASP.NET / ASP.NET Core' started by wisemx, Feb 18, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Did you include a SMTP section in your root web.config like this?

     
  2. I am trying to send my users an email after their account is created. I am using the .NET 2.0 System.Net.Mail and SmtpClient namespaces to send the email.

    I am getting this error:

    'Mailbox unavailable. The server response was: <[email protected]> No such user here'

    It's complaining about the user's email address.

    Any ideas?
     
  3. Can you send email directly to the email address using a gmail or yahoo account? You may also want to make sure that the email address you're sending to is valid and active.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Yes, I am using a mailSettings section in my web.config. My smtp tag looks slightly different than yours:

     
  5. If you're using .NET 2 calls the method I posted is what you should stick to.
     
  6. I also wrote a small email tester that seems to send mail just fine to the email address that was complained about.
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    I bet the problem is caused by an invalid mail server set somewhere in the application.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page