Documentation ¶
Overview ¶
*********************************************************** ** @Description: notify ** @Author: Bee ** @Date: 2018-02-15 11:02 ** @Last Modified by: Bee ** @Last Modified time: 2018-02-15 11:02 ************************************************************
*********************************************************** ** @Description: notify ** @Author: george hao ** @Date: 2018-08-08 12:59 ** @Last Modified by: gwalker ** @Last Modified time: 2018-11-26 14:57 ************************************************************
*********************************************************** ** @Description: notify ** @Author: george hao ** @Date: 2018-08-09 13:05 ** @Last Modified by: Bee ** @Last Modified time: 2019-02-15 13:50 ************************************************************
Index ¶
- Variables
- func Dial(addr string) (*smtp.Client, error)
- func GetContentTypeString(format string) string
- func SendDingtalkToChan(dingtalks map[string]string, content map[string]interface{}) bool
- func SendMailUsing25(addr string, port string, auth smtp.Auth, from string, to []string, msg []byte) (err error)
- func SendMailUsing465(addr string, port string, auth smtp.Auth, from string, to []string, msg []byte) (err error)
- func SendSmsToChan(mobiles map[string]string, param map[string]string) bool
- func SendToChan(to, subject, body, mailtype string) bool
- func SendWechatToChan(accounts map[string]string, param map[string]string) bool
- type Dingtalk
- type PEmail
- type PEmailConfig
- type Sms
- type SmsAjaxReturn
- type Wechat
- type WechatAjaxReturn
Constants ¶
This section is empty.
Variables ¶
var DingtalkChan chan *Dingtalk
var DingtalkUrl string
var SmsChan chan *Sms
var SmsUrl string
var WechatChan chan *Wechat
var WechatUrl string
Functions ¶
func GetContentTypeString ¶
func SendDingtalkToChan ¶
func SendMailUsing25 ¶
func SendMailUsing465 ¶
func SendToChan ¶
Types ¶
type Dingtalk ¶
func (*Dingtalk) SendDingtalk ¶
type PEmail ¶
type PEmail struct { Config *PEmailConfig Subject string Body string To string Format string }