Documentation ¶
Index ¶
- type HtmlMailer
- type HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) Bcc(bcc []string) *HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) Build() (*mail.Msg, error)
- func (hmb *HtmlMsgBuilder) Cc(cc []string) *HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) Data(data any) *HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) HtmlTemplate(template string) *HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) Subject(subject string) *HtmlMsgBuilder
- func (hmb *HtmlMsgBuilder) To(to []string) *HtmlMsgBuilder
- type MailConfig
- type Mailer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HtmlMailer ¶
type HtmlMailer struct {
Mailer
}
func CreateHtmlMailer ¶
func CreateHtmlMailer(c *MailConfig) *HtmlMailer
func (*HtmlMailer) MsgBuilder ¶
func (hm *HtmlMailer) MsgBuilder() *HtmlMsgBuilder
type HtmlMsgBuilder ¶
type HtmlMsgBuilder struct {
// contains filtered or unexported fields
}
func (*HtmlMsgBuilder) Bcc ¶
func (hmb *HtmlMsgBuilder) Bcc(bcc []string) *HtmlMsgBuilder
func (*HtmlMsgBuilder) Build ¶
func (hmb *HtmlMsgBuilder) Build() (*mail.Msg, error)
func (*HtmlMsgBuilder) Cc ¶
func (hmb *HtmlMsgBuilder) Cc(cc []string) *HtmlMsgBuilder
func (*HtmlMsgBuilder) Data ¶
func (hmb *HtmlMsgBuilder) Data(data any) *HtmlMsgBuilder
func (*HtmlMsgBuilder) HtmlTemplate ¶
func (hmb *HtmlMsgBuilder) HtmlTemplate(template string) *HtmlMsgBuilder
func (*HtmlMsgBuilder) Subject ¶
func (hmb *HtmlMsgBuilder) Subject(subject string) *HtmlMsgBuilder
func (*HtmlMsgBuilder) To ¶
func (hmb *HtmlMsgBuilder) To(to []string) *HtmlMsgBuilder
type MailConfig ¶
Click to show internal directories.
Click to hide internal directories.