Introduction: In this article I will explain how to send email by embedding images using Gmail credentials in asp.net

Description:Generally we will send mails using SMTP server suppose if we don’t have smtp server in that situation we can send mails by using gmail smtp server in asp.net. I will explain how to implement mail sending concept using Gmail credentials using asp.net.

To implement this concept first you need to enable POP enable in your Gmail account for this Settings-->Forwarding and POP/IMAP

To implement this mail concept in your asp.net application first we need to add this reference to our application System.Net.Mail namespace
What is System.Net.Mail ?

The System.Net.Mail is a namespace which contains classes to send electronic mail through Simple Mail Transfer Protocol (SMTP) server for delivery.

How we can get this reference (System.Net.Mail)
for that first add System.Net.dll reference to our application.