support

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookStartTLS

type HookStartTLS func(*tls.Config)

HookStartTLS nil, except for tests

type SMTPSender

type SMTPSender struct {
	markup.Component `id:"mail.Sender"`

	NeedWorkAround bool `inject:"${mail.smtp.workaround}"`

	SenderAddress string `inject:"${mail.sender.address}"`
	SenderName    string `inject:"${mail.sender.name}"`

	SMTPHost     string `inject:"${mail.smtp.host}"`
	SMTPPort     int    `inject:"${mail.smtp.port}"`
	SMTPUser     string `inject:"${mail.smtp.user}"`
	SMTPPassword string `inject:"${mail.smtp.password}"`
}

SMTPSender 默认的邮件发送组件

func (*SMTPSender) Send

func (inst *SMTPSender) Send(m *mail.Mail) error

Send 发送邮件

Jump to

Keyboard shortcuts

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