I have a password recovery control that is set to ask the user my security question I have configured with email and subject , But I'm getting a runtime error telling the SMTP host.
Can anyone tell me how to set up a host?
Thanks
Add the system.net section to your web.config with the following :
& lt; System.net & gt; & Lt; MailSettings & gt; & Lt; Smtp delivery method = "network" & gt; & Lt; Network Host = "yourmailserveraddress" /> & Lt; / Smtp & gt; & Lt; / MailSettings & gt; & Lt; /system.net>
Comments
Post a Comment