smtp

package
v0.0.0-...-5e83000 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: BSD-2-Clause-Patent Imports: 4 Imported by: 0

Documentation

Overview

Package smtp contains implementation of message sender using SMTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

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

Mailer implements send.Sender interface using SMTP server.

func NewMailer

func NewMailer(smtpHost string, smtpPort uint16, username, password, sender string, log lax.Logger) *Mailer

NewMailer creates mailer.

func (*Mailer) Send

func (m *Mailer) Send(recipient, subject, message string) error

Send sends message using SMTP server.

Jump to

Keyboard shortcuts

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