SMTP host not specified

I want to send mail to the user during registration, but an error (SMTP host not specified) How to configure smtp in web.config?

+7
source share
1 answer

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> 
+24
source

All Articles