I want to send mail to the user during registration, but an error (SMTP host not specified) How to configure smtp in web.config?
You should add the following to the web.config file:
<system.net> <mailSettings> <smtp> <network host="smtp.xxx.com" password="" userName=""/> </smtp> </mailSettings> </system.net>