How to add From Display name in web.config for smtp

6. November 2012

We will have to enter the below code in web.config . Just add the text you want to add in place of <name> :

 

<smtp from="<name>&lt;<email@domain.com>&gt;">
<network host="<hostname>" port="25" userName="" password="" />
</smtp>

smtp , ,