sendgrid

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendGridConfig

type SendGridConfig struct {
	APIKey        string
	OriginAddress string
	OriginName    string
}

SendGridConfig contain all attributes to initialize the SendGrid mail service

func NewSendGridConfig added in v1.3.1

func NewSendGridConfig(mailAttributes mail.MailAttributes) (result *SendGridConfig, err error)

type SendGridService

type SendGridService struct {
	// contains filtered or unexported fields
}

SendGridService implements MailService

func NewSendGridService

func NewSendGridService(config *SendGridConfig) *SendGridService

NewSendGridService creates a SendGridService using an already initializes service

func (*SendGridService) SendMail

func (service *SendGridService) SendMail(ctx context.Context, attributes mail.MailAttributes) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL