mail

package
v0.0.0-...-95a9367 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Subject string
	Body    string
}

EmailData

type SMTPClient

type SMTPClient struct {
	Server   string
	Port     string
	From     string
	Password string
	SSL      bool // SSL or not
}

SMTP Client

func NewSMTPClient

func NewSMTPClient(server, port, from, passwd string, ssl bool) *SMTPClient

func (*SMTPClient) SendMail

func (m *SMTPClient) SendMail(to []string, data Data) error

Jump to

Keyboard shortcuts

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