gmail

package
v0.0.0-...-3c27b1e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailContent

type EmailContent struct {
	From             *mail.Email
	To               *mail.Email
	Subject          string
	PlainTextContent string
	HtmlContent      string
}

type SendgridService

type SendgridService struct {
	Client    *sendgrid.Client
	EmailFrom string
	Host      string
	Frontend  string
}

func NewMailService

func NewMailService(c *utils.Config) SendgridService

func (*SendgridService) SendEmailForInvite

func (s *SendgridService) SendEmailForInvite(toEmail string, groupID string, groupName string, inviter string, inviterID string) error

func (*SendgridService) SendEmailForVerified

func (s *SendgridService) SendEmailForVerified(toEmail string, verifyString string) error

Jump to

Keyboard shortcuts

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