Documentation
¶
Index ¶
- func AddToQueue(email Email)
- func AsyncSend(notify *model.Notify)
- func AsyncSendTo(subject string, body string, toAddr string)
- func GetCookedEmail(email Email) *gomail.Message
- func GetEmailMineTxt(email Email) string
- func GetExternalTpl(filename string) string
- func GetInternalEmailTpl(tplName string) string
- func GetInternalNotifyTpl(tplName string) string
- func GetInternalTpl(basePath string, tplName string) string
- func GetPurifiedValue(k string, v interface{}) string
- func HandleEmoticonsImgTagsForNotify(str string) string
- func InitQueue()
- func RenderCommon(str string, notify *model.Notify, _renderType ...string) string
- func RenderEmailBody(notify *model.Notify, isSendToAdmin bool) string
- func RenderNotifyBody(notify *model.Notify) string
- func ReplaceAllMustache(data string, dict map[string]interface{}) string
- func SendByAliDM(email Email) bool
- func SendBySMTP(email Email) bool
- func SendByUsingSystemCMD(email Email) bool
- type CommonFields
- type Email
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToQueue ¶
func AddToQueue(email Email)
func AsyncSendTo ¶
func GetCookedEmail ¶
func GetEmailMineTxt ¶
func RenderCommon ¶
func RenderEmailBody ¶
渲染邮件 Body 内容
func ReplaceAllMustache ¶
替换 {{ key }} 为 val
func SendByAliDM ¶
func SendBySMTP ¶
func SendByUsingSystemCMD ¶
Types ¶
type CommonFields ¶
type CommonFields struct {
From model.CookedCommentForEmail `json:"from"`
To model.CookedCommentForEmail `json:"to"`
Comment model.CookedCommentForEmail `json:"comment"`
ParentComment model.CookedCommentForEmail `json:"parent_comment"`
Nick string `json:"nick"`
Content string `json:"content"`
ReplyNick string `json:"reply_nick"`
ReplyContent string `json:"reply_content"`
PageTitle string `json:"page_title"`
PageURL string `json:"page_url"`
SiteName string `json:"site_name"`
SiteURL string `json:"site_url"`
LinkToReply string `json:"link_to_reply"`
}
Click to show internal directories.
Click to hide internal directories.