Sending Email using C# (with HTML body & Attachment )

This article is provide a basic idea how we can send Emails from a C# Windows Application.
Here I have described how we can send mail with Attachment and HTML body.

If we want to send mail then we need to know following things
1. SMTP Server address
2. Port No

Here I have used gmail as a SMTP Server
for gmail account
SMTP Server:
SMTP port : 465 or 587
your account Name:###
your password:###

Continue reading