Punita

Punita

  • NA
  • 52
  • 32.1k

sending an email through SMTP

Oct 10 2012 12:19 PM
Hello Sir,

I write following code in web.config file, now what i need to access following info. while coding?Now what to do to send a mail?? Plz replay.

<system.net>
    <mailSettings>
      <smtp from="gmailid">
        <network host="smtp.gmail.com" defaultCredentials="false"
        port="587" userName ="gmailid" password="gmailpassword" />
      </smtp>
    </mailSettings>
  </system.net>

Answers (4)