Hi toall,
I am doing the program in c# automatically sending the mails
But I am unable to set the SMTP server and I dont know about that much in this,
Please any one help in this.
Thanks & Regards
Geeta
SMTP server
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jun 3, 2008, 1:05 AM EDT
You can set the smtp server detais in web.config file. Just follow the code given below.
<system.net>
<mailSettings>
<smtp>
<network host="SMTP.1and1.com" userName="[email protected]" password="atl"/>
</smtp>
</mailSettings>
</system.net>
Provide host name,username and password as per your smtp server configuration.