package
0.0.0-20250322183500-934bfd50bf90
Repository: https://github.com/infomark-org/infomark.git
Documentation: pkg.go.dev
# Functions
BackgroundSend will send emails enqueued in a channel.
FillTemplate loads a template and fills out the placeholders.
NewEmail creates a new email structure.
NewEmailFromTemplate creates a new email structure filling a template file.
NewEmailFromUser creates a new email structure and appends the sender information.
NewSendMailer creates an object that will send emails over sendmail.
NewTerminalMailer creates an object that printout the email in the terminal.
NewVoidMailer creates an object that drops any email.
# Variables
No description provided by the author
DefaultMail is the default instance used by infomark.
OutgoingEmailsChannel is a light-weight go-routine to send emails.
No description provided by the author
SendMail is ready-to-use instance for sendmail.
TerminalMail is ready-to-use instance for displaying emails in the terminal.
VoidMail is ready-to-use instance for dropping outgoing emails.
# Structs
Email contains all information to use sendmail.
SendMailer uses the sendmail binary to send emails.
TerminalMailer prints the email to the terminal.
VoidMailer does nothing (to keep the unit test outputs clean).
# Interfaces
Emailer any object that can send.