Documentation ¶
Overview ¶
Package mails - AWS SES wrapper
Index ¶
- func FilterATags(body *[]byte, cid string) map[string]LinksData
- func FilterWashiTags(body *[]byte, cid string) map[string]LinksData
- func GenParams(to string, message string, subject string) *ses.SendEmailInput
- func ProcessSend(body []byte, rows *sql.Rows, cid string, replaceLink bool, subject string, ...)
- func ReplaceATag(html *[]byte, allATags map[string]LinksData, cid string, seed string, ...)
- func ReplaceFname(html *[]byte, fname string)
- func ReplaceLname(html *[]byte, lname string)
- func ReplaceReader(html *[]byte, cid string, seed string, uid string)
- func ReplaceWashiTag(html *[]byte, allATags map[string]LinksData, cid string, seed string, ...)
- func Send(params *ses.SendEmailInput)
- func SendWG(params *ses.SendEmailInput, wg *sync.WaitGroup)
- type LinksData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterATags ¶ added in v1.3.0
FilterATags is to filter, find all a tag data
func FilterWashiTags ¶
FilterWashiTags is to filter, find all {{WASHI}} tag data
func GenParams ¶
func GenParams(to string, message string, subject string) *ses.SendEmailInput
GenParams is to gen email params
func ProcessSend ¶ added in v1.3.0
func ProcessSend(body []byte, rows *sql.Rows, cid string, replaceLink bool, subject string, dryRun bool, limit int)
ProcessSend is to start send from rows
func ReplaceATag ¶ added in v1.3.0
ReplaceATag is to replace HTML a tag
func ReplaceFname ¶ added in v1.3.0
ReplaceFname is to replace FNAME tag
func ReplaceLname ¶
ReplaceLname is to replace FNAME tag
func ReplaceReader ¶ added in v1.3.0
ReplaceReader is to replace reader open mail link
Types ¶
Click to show internal directories.
Click to hide internal directories.