Email setting in web.config

Discussion in 'ASP.NET 2.0' started by rahul, May 11, 2006.

  1. hi,

    I want to send email from passwordrecovery control so that user can get there password by email, i am using this this code in web.config file.






    This is the SMTP Server: mail.musiciq.co.uk given to me by discountasp.net.

    When i use this code then it gives error

    <system.net>
    <mailSettings>
    <smtp deliveryMethod="Network">
    <network defaultCredentials="false" host="mail.musiciq.co.uk" password="password" userName="definitivem" from="[email protected]" />
    </smtp>
    </mailSettings>
    </system.net>

    thanks
     
  2. The host should be set to 'localhost', and no need for username and password.

    Aristotle

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page