Email no longer works in my c# app

Discussion in 'ASP.NET 2.0' started by dgerdner, Oct 27, 2006.

  1. Since the email configuration was changed from mail.xxxxx to smtp.xxxx my web page that allows users to send and email is no longer functioning. This line:




    Mail.Send(objEmail);


    throws an exception:


    "The SMTP server requires a secure connection or the client was not authenticated. The server response was: authentication needed"


    Any ideas?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    make sure you are using "localhost" as the smtp server.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Just to be sure. Currently my code has:

    SmtpClient Mail = new SmtpClient("smtp.ridgewoodwrestling.org")

    are you saying I couls simply use:

    SmtpClient Mail = new SmtpClient("localhost")
     
  4. what if you are relaying from your local dev machine to discount?

    'The SMTP server requires a secure connection or the client was not authenticated. The server response was: authentication needed'
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    If you are relaying from outside of our network, you will need to use an email component that allow SMTP authentication and use one of your POP3 account to authenticate.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  6. Thanks Bruce!

    System.Net.NetworkCredential used in conjunction System.Net.Mail.SmtpClient won't work will it since it is outside of the network I have come to realize.

    I am actuallythankful that I am dealing with this issue... I like things secure...

    Bz
     
  7. Bruce

    Bruce DiscountASP.NET Staff

Share This Page