connection attempt failed when sending outgoing emails using SMTP

Discussion in 'ASP.NET / ASP.NET Core' started by Ganggang, Feb 7, 2011.

  1. I'm writing a password recovery page. In ASP.NET configuration page -> Application -> Configure SMTP Settings, I set the information as

    Server Name: smtp.myDomain.com
    Server Port: 25
    From: [email protected]

    Authentication:
    Basic
    Sender's user name: [email protected]
    Sender's password: XXXXX

    When open the web page and run it, I got following error:

    A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ...

    I am able to send email from [email protected] manually, is there anything else I should add or change in configuration page, or somewhere else?

    Thanks
     
  2. You will want to use use your SMTP server as "localhost" instead of SMTP.YOURDOMAIN.Com

    If you have not already, you may want to take a look at the following KB article HERE
     
  3. Thanks a lot.
    This time I got the message "Your password has been sent to you." But I didn't receive anything in my email box. I tried all my email account but none of them could receive emails with password...
    Is there anything more I should change?
     
  4. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Try setting the Authentication to None.
     

Share This Page