mail

package
v0.0.0-...-2389199 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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