Documentation
¶
Index ¶
- Constants
- func AttachmentGetContent(attachment MessageProperty) string
- func AttachmentGetFileName(attachment MessageProperty) string
- func NewDiscordWebhook(webhook string) *discordWebhook
- func NewSMTPPlainText(from, host string, port int, password, ua string) *smtpPlainText
- func NewSlackWebhook(webhook string) *slackWebhook
- type MessageProperty
- type Sender
Constants ¶
View Source
const ( MessagePropertyAttachment = "attachment" MessagePropertySubject = "subject" MessagePropertyRecipient = "recipient" )
Variables ¶
This section is empty.
Functions ¶
func AttachmentGetContent ¶
func AttachmentGetContent(attachment MessageProperty) string
func AttachmentGetFileName ¶
func AttachmentGetFileName(attachment MessageProperty) string
func NewDiscordWebhook ¶
func NewDiscordWebhook(webhook string) *discordWebhook
func NewSMTPPlainText ¶
func NewSlackWebhook ¶
func NewSlackWebhook(webhook string) *slackWebhook
Types ¶
type MessageProperty ¶
func NewAttachment ¶
func NewAttachment(fileName string, fileContent []byte) MessageProperty
func NewAttachmentFromFilePath ¶
func NewAttachmentFromFilePath(path string) (MessageProperty, error)
func NewRecipient ¶
func NewRecipient(address string) MessageProperty
func NewSubject ¶
func NewSubject(subject string) MessageProperty
Click to show internal directories.
Click to hide internal directories.