Versions in this module Expand all Collapse all v0 v0.2.0 May 13, 2023 Changes in this version + func MakeTemplateContext(srcCtx map[string]any) map[string]any + type TemplateScribe struct + func NewTemplateScribe() *TemplateScribe + func (ps *TemplateScribe) Close() + func (ps *TemplateScribe) Compose(ctx ...any) Scribe + func (ps *TemplateScribe) GetErrors() error + func (ps *TemplateScribe) HasErrors() bool + func (ps *TemplateScribe) Include(filepath string, name ...string) + func (ps *TemplateScribe) Message() *smail.Email + func (ps *TemplateScribe) Open() (*Message, error) + func (ps *TemplateScribe) Seal(envelope *Envelope) Scribe + func (ps *TemplateScribe) SetBodyTemplate(text string, html bool) + func (ps *TemplateScribe) SetHtmlBodyTemplate(html string) + func (ps *TemplateScribe) SetPriority(isHigh bool) + func (ps *TemplateScribe) SetSubjectTemplate(subject string) + func (ps *TemplateScribe) SetTextBodyTemplate(text string) v0.1.0 May 7, 2023 Changes in this version + var EmptyAddress = mail.Address + func LoadTemplateString(mightBeFilePath string) string + func MakePongoContext(srcCtx map[string]any) pongo2.Context + type AddressType int + const BccAddress + const CcAddress + const FromAddress + const ReplyToAddress + const ToAddress + type Courier struct + func NewCourier(host string, port int, user, password string) *Courier + func (cr *Courier) Deliver(msg *smail.Email) error + type Envelope struct + FromAddress mail.Address + ReplyToAddress mail.Address + func NewEnvelope() *Envelope + func (em *Envelope) AddBccAddress(address string) + func (em *Envelope) AddBccAddresses(addresses []string) + func (em *Envelope) AddCcAddress(address string) + func (em *Envelope) AddCcAddresses(addresses []string) + func (em *Envelope) AddToAddress(address string) + func (em *Envelope) AddToAddresses(addresses []string) + func (em *Envelope) GetBccAddresses() []mail.Address + func (em *Envelope) GetCcAddresses() []mail.Address + func (em *Envelope) GetErrors() error + func (em *Envelope) GetToAddresses() []mail.Address + func (em *Envelope) HasErrors() bool + func (em *Envelope) SetFromAddress(address string) + func (em *Envelope) SetReplyToAddress(address string) + func (em *Envelope) Stamp(msg *smail.Email) + type Message struct + func NewMessage() *Message + func (c *Message) AddAttachment(filePath string, fileName string) + func (c *Message) AddFile(file *smail.File) + func (c *Message) Message() *smail.Email + func (c *Message) Seal(envelope *Envelope) + func (c *Message) SetHtmlBody(html string) + func (c *Message) SetPriority(isHigh bool) + func (c *Message) SetPriorityHigh() + func (c *Message) SetPriorityLow() + func (c *Message) SetSubject(subject string) + func (c *Message) SetTextBody(text string) + func (c *Message) String() string + type PongoScribe struct + func NewPongoScribe() *PongoScribe + func (ps *PongoScribe) Close() + func (ps *PongoScribe) Compose(ctx ...any) Scribe + func (ps *PongoScribe) GetErrors() error + func (ps *PongoScribe) HasErrors() bool + func (ps *PongoScribe) Include(filepath string, name ...string) + func (ps *PongoScribe) Message() *smail.Email + func (ps *PongoScribe) Open() (*Message, error) + func (ps *PongoScribe) Seal(envelope *Envelope) Scribe + func (ps *PongoScribe) SetBodyTemplate(text string, html bool) + func (ps *PongoScribe) SetHtmlBodyTemplate(html string) + func (ps *PongoScribe) SetPriority(isHigh bool) + func (ps *PongoScribe) SetSubjectTemplate(subject string) + func (ps *PongoScribe) SetTextBodyTemplate(text string) + type Scribe interface + Close func() + Compose func(...any) Scribe + GetErrors func() error + HasErrors func() bool + Include func(string, ...string) + Message func() *smail.Email + Open func() (*Message, error) + Seal func(*Envelope) Scribe + SetBodyTemplate func(string, bool) + SetHtmlBodyTemplate func(string) + SetPriority func(bool) + SetSubjectTemplate func(string) + SetTextBodyTemplate func(string) + type SimpleTextScribe struct + func NewSimpleTextScribe() *SimpleTextScribe + func (sts *SimpleTextScribe) Close() + func (sts *SimpleTextScribe) Compose(ctx ...any) Scribe + func (sts *SimpleTextScribe) GetErrors() error + func (sts *SimpleTextScribe) HasErrors() bool + func (sts *SimpleTextScribe) Include(filepath string, name ...string) + func (sts *SimpleTextScribe) Message() *smail.Email + func (sts *SimpleTextScribe) Open() (*Message, error) + func (sts *SimpleTextScribe) Seal(envelope *Envelope) Scribe + func (sts *SimpleTextScribe) SetBodyTemplate(text string, html bool) + func (sts *SimpleTextScribe) SetHtmlBodyTemplate(html string) + func (sts *SimpleTextScribe) SetPriority(isHigh bool) + func (sts *SimpleTextScribe) SetSubjectTemplate(subject string) + func (sts *SimpleTextScribe) SetTextBodyTemplate(text string)