mail

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	Tos     []string
	Subject string
	Content string
}

func (Mail) Validate

func (m Mail) Validate(max int) error

type SMTP

type SMTP struct {
	FromMail             string
	FromName             string
	Identity             string
	Username             string
	Password             string
	Host                 string
	Port                 int
	MaxMailContentLength int
	SSL                  bool
	StartTLS             bool
}

func NewSMTP

func NewSMTP(fromMail, fromName, username, password, host string, port int, ssl, startTLS bool) *SMTP

func (*SMTP) Send

func (s *SMTP) Send(mail Mail) error

Jump to

Keyboard shortcuts

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