smtp

package
v4.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v4.6.2

type Auth struct {
	Host, Port, Username, Password string
}

type SMTP

type SMTP struct {
	smtp.Auth
	ServerURL, Username string
}

func Open

func Open(auth *Auth) *SMTP

func (*SMTP) Headers

func (s *SMTP) Headers(to, subject string) string

func (*SMTP) SendMail

func (s *SMTP) SendMail(to []string, message []byte) error

func (*SMTP) SetHeader

func (*SMTP) SetHeader(key, value string) string

Jump to

Keyboard shortcuts

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