4
Answers

sending an email through SMTP

Punita

Punita

12y
2.1k
1
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)