private void SendMail(string verify, string Reciever) { MailMessage mail = new MailMessage("yourusername@gmail.com", Reciever); mail.Subject = "Testing"; string Body = "This is a testing mail"; mail.Body = Body; mail.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; //gmail SMTP Server Address smtp.Port = 587;//port number smtp.Credentials = new System.Net.NetworkCredential("yourusername@gmail.com", "your password"); //Or your Smtp Email ID and Password smtp.EnableSsl = true; smtp.Send(mail); }