mailer

package
v0.0.0-...-63bdbfa Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mailer contains mail operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	From     *string
	To       []string
	Password *string
	SMTPHost *string
	SMTPPort *int
}

Mailer Object is responsible for handling mailing configuration and logic.

func (*Mailer) Send

func (m *Mailer) Send(ctx *context.Context, subject, body string)

Send is a wrapper for mailing logic, this could potentially use an API instead of SMTP, depending on flexibility and performance requirements.

Jump to

Keyboard shortcuts

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