mailer

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

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

package to send mail

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	Domain      string
	Templates   string
	Host        string
	Port        int
	Username    string
	Password    string
	Encryption  string
	FromAddress string
	FromName    string
	Jobs        chan Message
	Results     chan Result
	API         string
	APIKey      string
	APIUrl      string
}

func (*Mail) ListenForMail

func (m *Mail) ListenForMail()

func (*Mail) SelectAPI

func (m *Mail) SelectAPI(msg Message) error

func (*Mail) Send

func (m *Mail) Send(msg Message) error

func (*Mail) SendSMTPMessage

func (m *Mail) SendSMTPMessage(msg Message) error

func (*Mail) SendUsingAPI

func (m *Mail) SendUsingAPI(msg Message, transport string) error

type Message

type Message struct {
	From        string
	FromName    string
	To          string
	Subject     string
	Template    string
	Attachments []string
	Data        interface{}
}

type Result

type Result struct {
	Success bool
	Error   error
}

Jump to

Keyboard shortcuts

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