import "github.com/golang-common-packages/email"
// This is for both SendGrid and GoMail
mailClient := email.NewMailClient(email.SENDGRID, &email.MailConfig{
URL: "",
Port: "",
Username: "",
Password: "",
SecretKey: "",
}),
if err := mailClient.Send("fromEmail", "recipientEmail", "subject", "message"); err != nil {
log.Printf("Can not send: %s", err.Error())
}
vin-vadim / email Goto Github PK
View Code? Open in Web Editor NEWThis project forked from golang-common-packages/email
This package help you sent mail over cloud services