summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2017-08-21 15:31:13 -0300
committerChristopher Speller <crspeller@gmail.com>2017-08-21 11:31:13 -0700
commit12a9180807f6e1e53023de001eb7f1e611026a91 (patch)
tree0d6028c41d4b874f90ce195787d085d0bb704a15 /app
parent65ccd4afb20b6bec40b8561e0eb0865372371b17 (diff)
downloadchat-12a9180807f6e1e53023de001eb7f1e611026a91.tar.gz
chat-12a9180807f6e1e53023de001eb7f1e611026a91.tar.bz2
chat-12a9180807f6e1e53023de001eb7f1e611026a91.zip
[PLT-1015] Make all Mattermost system emails Multi-Part, with both a HTML and Plain Text version. (#5698)
* Implementation to Make all Mattermost system emails Multi-Part, with both a HTML and Plain Text version * update lib * update code per review * update to use the mattermost repo
Diffstat (limited to 'app')
-rw-r--r--app/admin.go1
-rw-r--r--app/email_batching.go2
-rw-r--r--app/email_test.go4
3 files changed, 3 insertions, 4 deletions
diff --git a/app/admin.go b/app/admin.go
index 50ed769b6..b9e22a87f 100644
--- a/app/admin.go
+++ b/app/admin.go
@@ -212,7 +212,6 @@ func TestEmail(userId string, cfg *model.Config) *model.AppError {
return model.NewLocAppError("testEmail", "api.admin.test_email.reenter_password", nil, "")
}
}
-
if user, err := GetUser(userId); err != nil {
return err
} else {
diff --git a/app/email_batching.go b/app/email_batching.go
index b37963a94..e2a2286ce 100644
--- a/app/email_batching.go
+++ b/app/email_batching.go
@@ -218,7 +218,7 @@ func sendBatchedEmailNotification(userId string, notifications []*batchedNotific
body.Props["BodyText"] = translateFunc("api.email_batching.send_batched_email_notification.body_text", len(notifications))
if err := utils.SendMail(user.Email, subject, body.Render()); err != nil {
- l4g.Warn(utils.T("api.email_batching.send_batched_email_notification.send.app_error"), user.Email, err)
+ l4g.Warn(utils.T("api.email_batchings.send_batched_email_notification.send.app_error"), user.Email, err)
}
}
diff --git a/app/email_test.go b/app/email_test.go
index 67457c702..449e81b75 100644
--- a/app/email_test.go
+++ b/app/email_test.go
@@ -70,7 +70,7 @@ func TestSendEmailChangeVerifyEmail(t *testing.T) {
var newUserEmail string = "newtest@example.com"
var locale string = "en"
- var siteURL string = ""
+ var siteURL string = "http://localhost:8065"
var expectedPartialMessage string = "You updated your email"
var expectedSubject string = "[" + utils.Cfg.TeamSettings.SiteName + "] Verify new email address"
var token string = "TEST_TOKEN"
@@ -174,7 +174,7 @@ func TestSendVerifyEmail(t *testing.T) {
var userEmail string = "test@example.com"
var locale string = "en"
- var siteURL string = ""
+ var siteURL string = "http://localhost:8605"
var expectedPartialMessage string = "Please verify your email address by clicking below"
var expectedSubject string = "[" + utils.Cfg.TeamSettings.SiteName + "] Email Verification"
var token string = "TEST_TOKEN"