cjk
cjk

Reputation: 46485

How do you configure Password Recovery control in ASP.Net?

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

Upvotes: 2

Views: 2100

Answers (1)

John Sheehan
John Sheehan

Reputation: 78152

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>

Upvotes: 3

Related Questions