i want to send mail to user when registered but error (The SMTP host was not specified) how to i configure smtp in web.config?
You should add following in web.config file:
<system.net>
<mailSettings>
<smtp>
<network host="smtp.xxx.com" password="" userName=""/>
</smtp>
</mailSettings>
</system.net>