Farhoud
Farhoud

Reputation: 217

The SMTP host was not specified

i want to send mail to user when registered but error (The SMTP host was not specified) how to i configure smtp in web.config?

Upvotes: 8

Views: 26978

Answers (1)

user1082916
user1082916

Reputation:

You should add following in web.config file:

<system.net>
    <mailSettings>
        <smtp>
            <network host="smtp.xxx.com" password="" userName=""/>
        </smtp>
    </mailSettings>
</system.net> 

Upvotes: 24

Related Questions