mail

package
v0.0.0-...-6b19e2d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FromAddress

type FromAddress struct {
	*mail.Address
}

func (*FromAddress) UnmarshalJSON

func (f *FromAddress) UnmarshalJSON(b []byte) error

type Mail

type Mail struct {
	Name     string      `json:"name"`
	Tls      bool        `json:"tls"`
	Server   string      `json:"server"`
	From     FromAddress `json:"from"`
	Username string      `json:"username"`
	Password string      `json:"password"`
}

func (*Mail) SendEmailTemplate

func (m *Mail) SendEmailTemplate(templateName, subject, nameOfUser string, to *mail.Address, data map[string]any) error

func (*Mail) SendMail

func (m *Mail) SendMail(subject string, to []*mail.Address, htmlBody, textBody io.Reader) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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