Web.Config - MailSettings

Discussion in 'ASP.NET 2.0' started by MasterCheif, Nov 7, 2007.

  1. Just wondering if if this is correct.
    <system.net>



    <mailSettings>


    <smtp from=[email protected]>


    <network host="smtp.xxx.xxx" password="" userName="" />


    </smtp>


    </mailSettings>


    </system.net>


    Where xxx.xxx is my domain. I tried localhost but i dont think it worked so i switched to this. Havent really tested either, just wondering...
     
  2. 'Localhost' is the recommended smtp server as it will use the web servers smtp service to relay out email. What is the error message that you get when you input 'localhost' as the smtp server.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page