summaryrefslogtreecommitdiffstats
path: root/model/client4.go
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-03-13 16:42:56 +0100
committerChris <ccbrown112@gmail.com>2018-03-13 10:42:56 -0500
commit1b29b503309cdd1f12a1b9d56b4c695a8ed84d2a (patch)
treed5e0e374419be7cb727fa360466e73b3caa66637 /model/client4.go
parent8ea26c84e711607f11db835c95d143c525f06a46 (diff)
downloadchat-1b29b503309cdd1f12a1b9d56b4c695a8ed84d2a.tar.gz
chat-1b29b503309cdd1f12a1b9d56b4c695a8ed84d2a.tar.bz2
chat-1b29b503309cdd1f12a1b9d56b4c695a8ed84d2a.zip
update email test in the driver to be able to send the config in the body (#8453)
Signed-off-by: cpanato <ctadeu@gmail.com>
Diffstat (limited to 'model/client4.go')
-rw-r--r--model/client4.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/client4.go b/model/client4.go
index 9e552d046..e7fe2bba0 100644
--- a/model/client4.go
+++ b/model/client4.go
@@ -2098,8 +2098,8 @@ func (c *Client4) GetPing() (string, *Response) {
}
// TestEmail will attempt to connect to the configured SMTP server.
-func (c *Client4) TestEmail() (bool, *Response) {
- if r, err := c.DoApiPost(c.GetTestEmailRoute(), ""); err != nil {
+func (c *Client4) TestEmail(config *Config) (bool, *Response) {
+ if r, err := c.DoApiPost(c.GetTestEmailRoute(), config.ToJson()); err != nil {
return false, BuildErrorResponse(r, err)
} else {
defer closeBody(r)