mail

package
v0.0.0-...-aeb9f2e Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: CC-BY-4.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPAuthCredentials

type SMTPAuthCredentials struct {
	Sender   string
	Password string
}

type SMTPClient

type SMTPClient struct {
	Host        string
	Port        string
	Credentials SMTPAuthCredentials
}

func NewSMTPClient

func NewSMTPClient(host, port, sender, password string) (SMTPClient, error)

Construct a new SMTP client

func (SMTPClient) SendMail

func (client SMTPClient) SendMail(mail models.Mail) (models.SuccessMessage, error)

Sends a mail using the SMTP protocol

Jump to

Keyboard shortcuts

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