mail

package
v1.3.60 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 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 MailService

type MailService interface {
	SendMail(ctx context.Context, to, sbj, content string) (err error)
}

func NewMailServiceImpl

func NewMailServiceImpl(sendGridToken, srcAddr string) MailService

type MailServiceImpl

type MailServiceImpl struct {
	Token   string
	SrcAddr string
}

func (*MailServiceImpl) SendMail

func (m *MailServiceImpl) SendMail(ctx context.Context, to, sbj, content string) (
	err error,
)

Jump to

Keyboard shortcuts

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