smtp

package
v0.0.0-...-1913e9d Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	Host     string
	Port     string
	User     string
	Password string
	From     string
	Subject  string
	Message  string
	To       []string
}

Email represents an Email.

func NewEmail

func NewEmail(h, p, user, pwd, subject, msg, from string, to []string) *Email

NewEmail creates a new Email.

func (*Email) Send

func (e *Email) Send() error

Send sends out the email. This needs to turn on "Less secure apps" option in gmail account.

Jump to

Keyboard shortcuts

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