Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
go-common-packagesPublic archive

About

This package help you sent mail over cloud services

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

email

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())
}

About

This package help you sent mail over cloud services

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages