Skip to content

SMTP server

geeta

Asked Jun 2, 2008, 11:32 PM EDT1 answer
Share
LinkedInX
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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Niradhip Chakraborty
    0

    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.

    0