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.
-
Notifications
You must be signed in to change notification settings - Fork 1
golang-common-packages/email
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This package help you sent mail over cloud services
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published