mailer

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 4 Imported by: 0

README

Send Mail API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	From         string
	ShowFromAddr bool
	To           []string
	Subject      string
	ContentType  string
	Content      string
}

func (*Mail) Message

func (m *Mail) Message(addr string) []byte

type MailSender

type MailSender interface {
	Send(*Mail) error
}

func NewAliyunSender

func NewAliyunSender(senderAddress, senderPass string) MailSender

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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