Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sending Email Problem : Connection refused
- <system.net>
- <mailSettings>
- <smtp>
- <network
- host="localhost"
- port="25"
- defaultCredentials="true"
- />
- </smtp>
- </mailSettings>
- </system.net>
- <system.net>
- <mailSettings>
- <smtp from="yourMailId@gmail.com ">
- <network host="smtp.gmail.com" defaultCredentials="false"
- port="587" userName ="yourMailId@gmail.com" password="yourMailPassword" />
- </smtp>
- </mailSettings>
- </system.net>
- SmtpClient client = new SmtpClient();
- client.EnableSsl = true;
Add Comment
Please, Sign In to add comment