diff --git a/api4/cloud.go b/api4/cloud.go
index 0eb8f56635..c625779d22 100644
--- a/api4/cloud.go
+++ b/api4/cloud.go
@@ -408,7 +408,7 @@ func handleCWSWebhook(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if appErr := c.App.Srv().EmailService.SendCloudWelcomeEmail(user.Email, user.Locale, team.InviteId, subscription.GetWorkSpaceNameFromDNS(), subscription.DNS); appErr != nil {
+ if appErr := c.App.Srv().EmailService.SendCloudWelcomeEmail(user.Email, user.Locale, team.InviteId, subscription.GetWorkSpaceNameFromDNS(), subscription.DNS, *c.App.Config().ServiceSettings.SiteURL); appErr != nil {
c.Err = appErr
return
}
diff --git a/app/email.go b/app/email.go
index 383dc42a06..e34cf9bf47 100644
--- a/app/email.go
+++ b/app/email.go
@@ -315,23 +315,21 @@ func (es *EmailService) SendCloudTrialEndWarningEmail(userEmail, userName, trial
}
// SendCloudWelcomeEmail sends the cloud version of the welcome email
-func (es *EmailService) SendCloudWelcomeEmail(userEmail, locale, teamInviteID, workSpaceName, dns string) *model.AppError {
+func (es *EmailService) SendCloudWelcomeEmail(userEmail, locale, teamInviteID, workSpaceName, dns, siteURL string) *model.AppError {
T := i18n.GetUserTranslations(locale)
subject := T("api.templates.cloud_welcome_email.subject")
- workSpacePath := fmt.Sprintf("https://%s", dns)
-
data := es.newEmailTemplateData(locale)
data.Props["Title"] = T("api.templates.cloud_welcome_email.title", map[string]interface{}{"WorkSpace": workSpaceName})
data.Props["SubTitle"] = T("api.templates.cloud_welcome_email.subtitle")
data.Props["SubTitleInfo"] = T("api.templates.cloud_welcome_email.subtitle_info")
data.Props["Info"] = T("api.templates.cloud_welcome_email.info")
data.Props["Info2"] = T("api.templates.cloud_welcome_email.info2")
- data.Props["WorkSpacePath"] = workSpacePath
+ data.Props["WorkSpacePath"] = siteURL
data.Props["DNS"] = dns
data.Props["InviteInfo"] = T("api.templates.cloud_welcome_email.invite_info")
data.Props["InviteSubInfo"] = T("api.templates.cloud_welcome_email.invite_sub_info", map[string]interface{}{"WorkSpace": workSpaceName})
- data.Props["InviteSubInfoLink"] = fmt.Sprintf("%s/signup_user_complete/?id=%s", workSpacePath, teamInviteID)
+ data.Props["InviteSubInfoLink"] = fmt.Sprintf("%s/signup_user_complete/?id=%s", siteURL, teamInviteID)
data.Props["AddAppsInfo"] = T("api.templates.cloud_welcome_email.add_apps_info")
data.Props["AddAppsSubInfo"] = T("api.templates.cloud_welcome_email.add_apps_sub_info")
data.Props["AppMarketPlace"] = T("api.templates.cloud_welcome_email.app_market_place")
diff --git a/templates/cloud_welcome_email.html b/templates/cloud_welcome_email.html
index e94f62ce61..19896f29fe 100644
--- a/templates/cloud_welcome_email.html
+++ b/templates/cloud_welcome_email.html
@@ -1,169 +1,171 @@
{{define "cloud_welcome_email"}}
+
+
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- |
-
- {{.Props.SubTitle}}
-
-
- {{.Props.SubTitleInfo}}
-
- |
-
-
-
-
-
-
-
-
-
-
- {{.Props.InviteInfo}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
- {{.Props.AddAppsSubInfo}}
- {{.Props.AppMarketPlace}}
+ style="font-family: Open Sans, Arial; font-weight: 600; font-size: 22px; line-height: 28px; color: #3D3C40;">
+ {{.Props.SubTitle}}
-
-
-
-
-
-
-
- {{.Props.DownloadMMInfo}}
-
- {{.Props.SignInSubInfo}} {{.Props.MMApps}}
- {{.Props.SignInSubInfo2}}
+ style="font-family: Open Sans, Arial; font-style: normal; font-weight: 400; font-size: 14px; line-height: 20px; color: #3D3C40;">
+ {{.Props.SubTitleInfo}}
-
- |
-
-
-
+
-
-
-
-
+
- |
-
-
-
-
- |
-
- © 2021 Mattermost, Inc. 530 Lytton Avenue, Second floor, Palo Alto, CA, 94301
-
- |
-
-
+
+
+
+
+
+
+
+ {{.Props.DownloadMMInfo}}
+
+
+ {{.Props.SignInSubInfo}} {{.Props.MMApps}}
+ {{.Props.SignInSubInfo2}}
+
+
+ |
+
+
+
- |
-
+
+
+
+
+
+
+
- |
+ |
+
+
+
+
+ |
+ {{.Props.Organization}}
+ {{.Props.FooterV2}}
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
{{end}}