email

package
v0.0.0-...-34ec42c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package email contains email client implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Send

func (c *Client) Send(to string, body []byte) error

type EmailClient

type EmailClient interface {
	// Send sends out body to an email to the provided email address
	Send(to string, body []byte) error
}

EmailClient is an interface for sending out email

func New

func New(config EmailClientConfig, log logger.Logger) EmailClient

type EmailClientConfig

type EmailClientConfig struct {
	Host     string
	Port     string
	Password string
	From     string
	Enabled  bool
}

EmailClientConfig to setup email client for sending email

Jump to

Keyboard shortcuts

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