Versions in this module Expand all Collapse all v0 v0.0.2 Nov 29, 2020 Changes in this version + const LINE_NOTIFY_URL + func LineNotificationOff() + func LineNotificationOn() + type LineNotifyToken struct + Tag string + Token string + func NewLineClient(token string) *LineNotifyToken + func NewLineClientWithTag(token, tag string) *LineNotifyToken + func (t *LineNotifyToken) SendImageFile(msg, imgpath string) error + func (t *LineNotifyToken) SendImageUrl(msg, imgurl, thumbUrl string) error + func (t *LineNotifyToken) SendMessage(msg string) error + func (t *LineNotifyToken) SendSticker(msg string, packageId, id int32) error + type MailContent struct + Attachments map[string]string + Bcc []*mail.Address + Body string + BodyContentType string + Cc []*mail.Address + From *mail.Address + Headers map[string]string + ReplyTo *mail.Address + ServerInfo *SmtpServer + Subject string + To []*mail.Address + func (m *MailContent) AddBcc(bcc string) error + func (m *MailContent) AddCc(cc string) error + func (m *MailContent) AddHeader(key, value string) error + func (m *MailContent) AddTo(to string) error + func (m *MailContent) Attach(file string) + func (m *MailContent) SendMail() error + func (m *MailContent) SetFrom(from string) error + func (m *MailContent) SetHeader(key, value string) + func (m *MailContent) SetReplyTo(reply string) error + type SlackMessageToken struct + WebhookUrl string + func NewSlackMessageClient(whurl string) *SlackMessageToken + func (t *SlackMessageToken) SendMessage(obj interface{}) error + func (t *SlackMessageToken) SendSimpleMessage(msg string) error + type SmtpServer struct + Identity string + SmtpHost string + SmtpPassword string + SmtpPort uint16 + SmtpSecret string + SmtpUsername string + func NewSmtpServer(host string, port uint16, username, password string) *SmtpServer + func NewSmtpServerCRAMMD5(host string, port uint16, username, secret string) *SmtpServer + func NewSmtpServerWithID(host string, port uint16, username, password, identity string) *SmtpServer + func (s *SmtpServer) EasySendMail(from, to, subject, body string) error + func (s *SmtpServer) NewHTMLMessage(subject, body string) *MailContent + func (s *SmtpServer) NewMessage(subject, body string) *MailContent