mail

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	FilePath string
	Name     string
}

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func New

func New(mailAddress, mailName, mailPass, smtpHost string) *Sender

func (*Sender) SendMail

func (s *Sender) SendMail(mailTo []string, subject string, body string) error

func (*Sender) SendMailWithAttachment

func (s *Sender) SendMailWithAttachment(mailTo []string, subject string, body string, attachments []Attachment) error

Jump to

Keyboard shortcuts

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