Documentation
¶
Index ¶
- type Attachment
- type EmailTemplate
- type Mailer
- type MailerBuilder
- func (b MailerBuilder) Build() Mailer
- func (b MailerBuilder) WithAttachment(fileName, contentType, contentID string, base64Encode bool) MailerBuilder
- func (b MailerBuilder) WithHeader(key, value string) MailerBuilder
- func (b MailerBuilder) WithHost(host string) MailerBuilder
- func (b MailerBuilder) WithPort(port int) MailerBuilder
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type EmailTemplate ¶
type EmailTemplate struct { TmplHeader *template.Template TmplBody *template.Template // contains filtered or unexported fields }
func NewEmailTemplate ¶
func NewEmailTemplate(templateDir, bodyFile, signatureLink string) (EmailTemplate, error)
type MailerBuilder ¶
type MailerBuilder struct {
// contains filtered or unexported fields
}
func NewGMailMailerBuilder ¶
func NewGMailMailerBuilder(from, password string) MailerBuilder
func NewMailerBuilder ¶
func NewMailerBuilder(smtpHost string, SMTPPort int, from, password string) MailerBuilder
func NewOutlookMailerBuilder ¶
func NewOutlookMailerBuilder(from, password string) MailerBuilder
func (MailerBuilder) Build ¶
func (b MailerBuilder) Build() Mailer
func (MailerBuilder) WithAttachment ¶
func (b MailerBuilder) WithAttachment(fileName, contentType, contentID string, base64Encode bool) MailerBuilder
func (MailerBuilder) WithHeader ¶
func (b MailerBuilder) WithHeader(key, value string) MailerBuilder
func (MailerBuilder) WithHost ¶
func (b MailerBuilder) WithHost(host string) MailerBuilder
func (MailerBuilder) WithPort ¶
func (b MailerBuilder) WithPort(port int) MailerBuilder
Click to show internal directories.
Click to hide internal directories.