Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { EmailConfig // contains filtered or unexported fields }
Email structure that represents an email. holds email creds and configuration
func NewEmail ¶
func NewEmail(username, password string, cfg EmailConfig) *Email
NewEmail construct a new email returns a pointer to Email structure.
type EmailConfig ¶
type EmailConfig struct { From string To []string Subject string MessageText string Boundary string BoundaryRepr string Attachements []string }
EmailConfig
type TemplateItems ¶
type TemplateItems struct { EmailConfig Recipient string }
TemplateItems template fields to replace
Click to show internal directories.
Click to hide internal directories.