mail

package
v0.0.0-...-b8dc01b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendHTMLMail

func SendHTMLMail(to, subject string, msg types.Email, attachment []types.EmailAttachment) error

SendMail sends an email to the given address with the given message. It will use smtp if configured otherwise it will use gunmail if configured.

func SendMailMailgun

func SendMailMailgun(to, subject, msgHtml, msgText string, attachment []types.EmailAttachment) error

SendMailMailgun sends an email to the given address with the given message, using mailgun.

func SendMailRateLimited

func SendMailRateLimited(to, subject string, msg types.Email, attachment []types.EmailAttachment) error

SendMailRateLimited sends an email to a given address with the given message. It will return a ratelimit-error if the configured ratelimit is exceeded.

func SendMailSMTP

func SendMailSMTP(to string, msg []byte) error

SendMailSMTP sends an email to the given address with the given message, using smtp.

func SendTextMail

func SendTextMail(to, subject, msg string, attachment []types.EmailAttachment) error

SendMail sends an email to the given address with the given message. It will use smtp if configured otherwise it will use gunmail if configured.

func SendTextMailMailgun

func SendTextMailMailgun(to, subject, msg string, attachment []types.EmailAttachment) error

SendMailMailgun sends an email to the given address with the given message, using mailgun.

func SendTextMailSMTP

func SendTextMailSMTP(to, subject, body string) error

SendMailSMTP sends an email to the given address with the given message, using smtp.

Types

type MailTemplate

type MailTemplate struct {
	Mail   types.Email
	Domain string
}

Jump to

Keyboard shortcuts

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