Sending Email through Gmail Crendentials

0 comments
First create one class File with name MailHelper.cs

Place the code


public class MailHelper
{
    private const int Timeout = 180000;
    private readonly string _host;
    private readonly int _port;
    private readonly string _user;
    private readonly string _pass;
    private readonly bool _ssl;

    public string Sender { get; set; }
    public string Recipient { get; set; }
    public string RecipientCC { get; set; }
    public string Subject { get; set; }
    public string Body { get; set; }
    public string AttachmentFile { get; set; }

Vikram Chandra Theme by BloggerThemes & NewWPThemes Sponsored by iBlogtoBlog