Documentation ¶
Overview ¶
Package mailer provides a simple mailer for sending emails.
Index ¶
- func RenderWelcome() (string, error)
- type Mailer
- type Message
- type MessageBuilder
- func (mb *MessageBuilder) Build() *Message
- func (mb *MessageBuilder) SetBody(body string) *MessageBuilder
- func (mb *MessageBuilder) SetFrom(name, from string) *MessageBuilder
- func (mb *MessageBuilder) SetSubject(subject string) *MessageBuilder
- func (mb *MessageBuilder) SetTo(name, to string) *MessageBuilder
- type TemplateDefaults
- type TemplateProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderWelcome ¶
Types ¶
type Mailer ¶
type MessageBuilder ¶
type MessageBuilder struct {
// contains filtered or unexported fields
}
func NewMessageBuilder ¶
func NewMessageBuilder() *MessageBuilder
func (*MessageBuilder) Build ¶
func (mb *MessageBuilder) Build() *Message
func (*MessageBuilder) SetBody ¶
func (mb *MessageBuilder) SetBody(body string) *MessageBuilder
func (*MessageBuilder) SetFrom ¶
func (mb *MessageBuilder) SetFrom(name, from string) *MessageBuilder
func (*MessageBuilder) SetSubject ¶
func (mb *MessageBuilder) SetSubject(subject string) *MessageBuilder
func (*MessageBuilder) SetTo ¶
func (mb *MessageBuilder) SetTo(name, to string) *MessageBuilder
type TemplateDefaults ¶
type TemplateProps ¶
type TemplateProps struct { Defaults TemplateDefaults Data map[string]string }
func DefaultTemplateData ¶
func DefaultTemplateData() TemplateProps
func (*TemplateProps) Set ¶
func (tp *TemplateProps) Set(key, value string)
Click to show internal directories.
Click to hide internal directories.