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())
}
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.