smtp

package
v4.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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 SMTP

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

func Open

func Open(host, port, username, password, serverURL string) *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