tags:

views:

660

answers:

1

I have a password recovery control that is set up to ask the user their security question. I have configured the from email and subject, but I am receiving a runtime error stating SMTP host is not specified.

Can someone tell me where I need to set the host?

Thanks

+3  A: 

Add a system.net section to your web.config with the following:

<system.net>
 <mailSettings>
  <smtp deliveryMethod="Network">
   <network host="yourmailserveraddress"/>
  </smtp>
 </mailSettings>
</system.net>
John Sheehan
I found it after changing my Google search (removing the space between password and recovery)
ck