auth := smtp.PlainAuth("", ".....@gmail.com", "....", "smtp.gmail.com")
to := []string{"....@gmail.com"}
msg := []byte("To: .....@gmail.com\r\n" +
"Subject: YES!\r\n" +
"\r\n" +
"This is the email body.\r\n")
err := smtp.SendMail("smtp.gmail.com:587", auth, "....@gmail.com", to, msg)
if err != nil {
log.Fatal(err)
}