mail

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mail provides a mail service

Index

Constants

This section is empty.

Variables

View Source
var MailQueue chan Mail

Functions

func MailWorker added in v0.0.8

func MailWorker(mailQueue chan Mail, mailErr chan error, worker int)

Worker processes emails from the mail queue nolint:revive // Keeping original name for backward compatibility

func ProcessMail added in v0.0.8

func ProcessMail(mailData Mail) error

ProcessMail handles the actual sending of an email

Types

type Mail added in v0.0.8

type Mail struct {
	FromName  string
	FromEmail string
	To        string
	Subject   string
	Body      string
	MetaData  interface{}
}

Mail is a struct that holds the data for a mail

func (*Mail) Send added in v0.0.8

func (m *Mail) Send() error

Send queues a mail for sending

Jump to

Keyboard shortcuts

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