Example of using Gmai's API and Golang to send email Make sure to change the credentials to your own inside email.go And also download your client secret and name it client_secret.json