email

package
v0.0.0-...-31a4683 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailConfig

type MailConfig struct {
	Host           string
	Port           int
	Address        string
	Password       string
	SenderName     string
	ConnectTimeout int
	SendTimeout    int
	DkimPrivateKey string
	DkimSelector   string
}

type MailSender

type MailSender struct {
	MailConfig
}

func NewMailSender

func NewMailSender(config *MailConfig) *MailSender

func (*MailSender) SendEmail

func (s *MailSender) SendEmail(to, subject, message string) error

Jump to

Keyboard shortcuts

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