emailx

package
v0.0.0-...-4dc2018 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 5 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 //smtp.gmail.com"
	Port string //587
	Auth smtp.Auth
}

func NewEmail

func NewEmail(host, port, username, password string) *Email

xxx@gmail.com xxxx

func (*Email) SendEmail

func (t *Email) SendEmail(mail Mail) (_err error)

type Mail

type Mail struct {
	From    string
	To      []string
	Subject string
	Text    []byte
	HTML    []byte
}

Jump to

Keyboard shortcuts

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