smtp

package
v4.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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 (client *SMTP) Headers(to, subject string) string

func (*SMTP) SendMail

func (client *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