private void button_send_Click(object sender, EventArgs e) { //Short Method SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); smtp.UseDefaultCredentials = false; smtp.Credentials = new NetworkCredential("username","password"); smtp.EnableSsl = true; smtp.Send("sender@gamil.com", "receiver", "subject", "Email Body"); //Detailed Method MailAddress mailfrom = new MailAddress("sender@gmail.com"); MailAddress mailto = new MailAddress("receiver@abc.com"); MailMessage newmsg = new MailMessage(mailfrom, mailto); newmsg.Subject = "Subject of Email"; newmsg.Body = "Body(message) of email"; //For File Attachment, more file can also be attached Attachment att = new Attachment("C://...file path"); newmsg.Attachments.Add(att); SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); smtp.UseDefaultCredentials = false; smtp.Credentials = new NetworkCredential("username","password"); smtp.EnableSsl = true; smtp.Send(newmsg); }