Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

This package help you sent mail over cloud services

Notifications You must be signed in to change notification settings

golang-common-packages/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages