* Add SendMail to plugin API

* Update per feedback

Co-Authored-By: cpanato <ctadeu@gmail.com>
Этот коммит содержится в:
Carlos Tadeu Panato Junior
2019-01-10 10:06:14 +01:00
коммит произвёл GitHub
родитель 1a3ccaf305
Коммит f8b87cbe2d
6 изменённых файлов: 112 добавлений и 0 удалений

Просмотреть файл

@@ -465,6 +465,11 @@ type API interface {
// do not need to add that info.
// keyValuePairs should be primitive go types or other values that can be encoded by encoding/gob
LogWarn(msg string, keyValuePairs ...interface{})
// SendMail sends an email to a specific address
//
// Minimum server version: 5.7
SendMail(to, subject, htmlBody string) *model.AppError
}
var handshake = plugin.HandshakeConfig{