mail

package
v0.45.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Common mailing (and templating) package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeMail added in v0.44.0

func ComposeMail(payload MessagePayload) (*gomail.Msg, error)

ComposeMail is a function to prepare a go-mail-formatted message for sending.

func SendMail added in v0.44.0

func SendMail(msg *gomail.Msg) error

Types

type MessagePayload

type MessagePayload struct {
	Email      string
	Type       string
	UUID       string
	Passphrase string
	Nickname   string
}

type TemplatePayload added in v0.44.0

type TemplatePayload struct {
	// All templates.
	MainURL     string
	Nickname    string
	TemplateSrc string

	// Reset template.
	Email     string
	ResetLink string
	UUID      string

	// Activation template.
	ActivationLink string

	// Passphrase template.
	Passphrase string
}

Jump to

Keyboard shortcuts

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