mail

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailAttributes

type MailAttributes struct {
	To          []string `json:"to" validate:"min=1"`
	Subject     string   `json:"subject" validate:"required"`
	HtmlContent string   `json:"content" validate:"required"`
	From        string   `json:"from,omitempty"`
	FromName    string   `json:"fromName,omitempty"`
}

MailAttributes contains E-Mail attributes

type MailService

type MailService interface {
	SendMail(ctx context.Context, attributes MailAttributes) error
}

Service forwards E-Mail to a set of receivers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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