mails

package
v2.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mails - AWS SES wrapper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterATags added in v1.3.0

func FilterATags(body *[]byte, cid string) map[string]LinksData

FilterATags is to filter, find all a tag data

func FilterWashiTags

func FilterWashiTags(body *[]byte, cid string) map[string]LinksData

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

func ReplaceATag(html *[]byte, allATags map[string]LinksData, cid string, seed string, uid string)

ReplaceATag is to replace HTML a tag

func ReplaceFname added in v1.3.0

func ReplaceFname(html *[]byte, fname string)

ReplaceFname is to replace FNAME tag

func ReplaceLname

func ReplaceLname(html *[]byte, lname string)

ReplaceLname is to replace FNAME tag

func ReplaceReader added in v1.3.0

func ReplaceReader(html *[]byte, cid string, seed string, uid string)

ReplaceReader is to replace reader open mail link

func ReplaceWashiTag

func ReplaceWashiTag(html *[]byte, allATags map[string]LinksData, cid string, seed string, uid string)

ReplaceWashiTag is to replace HTML a tag

func Send

func Send(params *ses.SendEmailInput)

Send is to send mail

func SendWG added in v1.3.0

func SendWG(params *ses.SendEmailInput, wg *sync.WaitGroup)

SendWG is with WaitGroup

Types

type LinksData added in v1.3.0

type LinksData struct {
	Md5h   string
	LinkID string
	URL    []byte
}

LinksData is the link data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL