mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add SendMail to plugin API (#10082)
* Add SendMail to plugin API * Update per feedback Co-Authored-By: cpanato <ctadeu@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1a3ccaf305
commit
f8b87cbe2d
@@ -1974,6 +1974,22 @@ func (_m *API) SendEphemeralPost(userId string, post *model.Post) *model.Post {
|
||||
return r0
|
||||
}
|
||||
|
||||
// SendMail provides a mock function with given fields: to, subject, htmlBody
|
||||
func (_m *API) SendMail(to string, subject string, htmlBody string) *model.AppError {
|
||||
ret := _m.Called(to, subject, htmlBody)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) *model.AppError); ok {
|
||||
r0 = rf(to, subject, htmlBody)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// SetProfileImage provides a mock function with given fields: userId, data
|
||||
func (_m *API) SetProfileImage(userId string, data []byte) *model.AppError {
|
||||
ret := _m.Called(userId, data)
|
||||
|
||||
Reference in New Issue
Block a user