diff --git a/web/ASC.Web.Core/Notify/Actions.cs b/web/ASC.Web.Core/Notify/Actions.cs
index ba6a33e2556..6834140e491 100644
--- a/web/ASC.Web.Core/Notify/Actions.cs
+++ b/web/ASC.Web.Core/Notify/Actions.cs
@@ -154,4 +154,6 @@ public static class Actions
public static readonly INotifyAction SaasOwnerPaymentWarningGracePeriodExpired = new NotifyAction("saas_owner_payment_warning_grace_period_expired");
public static readonly INotifyAction SaasAdminVideoGuides = new NotifyAction("saas_video_guides_v1");
+
+ public static readonly INotifyAction ZoomWelcome = new NotifyAction("zoom_welcome");
}
diff --git a/web/ASC.Web.Core/Notify/StudioNotifyService.cs b/web/ASC.Web.Core/Notify/StudioNotifyService.cs
index e596b6393bd..d7c914980fe 100644
--- a/web/ASC.Web.Core/Notify/StudioNotifyService.cs
+++ b/web/ASC.Web.Core/Notify/StudioNotifyService.cs
@@ -976,6 +976,33 @@ private string GetControlPanelUrl(string serverRootPath)
#endregion
+
+ #region Zoom
+
+ public async Task SendZoomWelcomeAsync(UserInfo u)
+ {
+ try
+ {
+ var culture = GetCulture(u);
+ var txtTrulyYours = WebstudioNotifyPatternResource.ResourceManager.GetString("TrulyYoursText", culture);
+
+ await _client.SendNoticeToAsync(
+ Actions.ZoomWelcome,
+ await _studioNotifyHelper.RecipientFromEmailAsync(u.Email, false),
+ new[] { EMailSenderName },
+ new TagValue(CommonTags.Culture, culture.Name),
+ new TagValue(Tags.UserName, u.FirstName.HtmlEncode()),
+ new TagValue(CommonTags.TopGif, _studioNotifyHelper.GetNotificationImageUrl("welcome.gif")),
+ TagValues.TrulyYours(_studioNotifyHelper, txtTrulyYours));
+ }
+ catch (Exception error)
+ {
+ _log.ErrorSendCongratulations(error);
+ }
+ }
+
+ #endregion
+
private CultureInfo GetCulture(UserInfo user)
{
CultureInfo culture = null;
diff --git a/web/ASC.Web.Core/Notify/StudioNotifySource.cs b/web/ASC.Web.Core/Notify/StudioNotifySource.cs
index 12ce254f4ce..206669cac29 100644
--- a/web/ASC.Web.Core/Notify/StudioNotifySource.cs
+++ b/web/ASC.Web.Core/Notify/StudioNotifySource.cs
@@ -150,7 +150,9 @@ protected override IActionProvider CreateActionProvider()
Actions.SaasOwnerPaymentWarningGracePeriodBeforeActivation,
Actions.SaasOwnerPaymentWarningGracePeriodActivation,
Actions.SaasOwnerPaymentWarningGracePeriodLastDay,
- Actions.SaasOwnerPaymentWarningGracePeriodExpired
+ Actions.SaasOwnerPaymentWarningGracePeriodExpired,
+
+ Actions.ZoomWelcome
);
}
diff --git a/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.Designer.cs b/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.Designer.cs
index 574a9b8e12a..6210fecff3f 100644
--- a/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.Designer.cs
+++ b/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.Designer.cs
@@ -2142,6 +2142,24 @@ public static string pattern_user_ldap_activation {
}
}
+ ///
+ /// Looks up a localized string similar to h1. to <span style="color:#FF6F3D;">ONLYOFFICE</span> DocSpace!
+ ///
+ ///
+ ///Hello, $UserName!
+ ///
+ ///You have just created ONLYOFFICE DocSpace, a document hub where you can boost collaboration with your team, customers, partners, and more. Its address is "${__VirtualRootPath}":"${__VirtualRootPath}".
+ ///
+ ///Your current tariff plan is STARTUP. It is absolutely free and includes:
+ ///
+ ///<table cellspacing="0" cellpadding="0" background="#ffffff" style="background-color: #ffffff; border: 0 none; border-collapse: collapse; borde [rest of string was truncated]";.
+ ///
+ public static string pattern_zoom_welcome {
+ get {
+ return ResourceManager.GetString("pattern_zoom_welcome", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to ${LetterLogoText}. Please activate your email address.
///
@@ -2934,6 +2952,15 @@ public static string subject_user_ldap_activation {
}
}
+ ///
+ /// Looks up a localized string similar to Welcome to ONLYOFFICE DocSpace!.
+ ///
+ public static string subject_zoom_welcome {
+ get {
+ return ResourceManager.GetString("subject_zoom_welcome", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Truly Yours, ONLYOFFICE Team.
///
diff --git a/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.resx b/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.resx
index 980d8e85117..7705b7598fd 100644
--- a/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.resx
+++ b/web/ASC.Web.Core/PublicResources/WebstudioNotifyPatternResource.resx
@@ -2426,4 +2426,23 @@ $TrulyYours
Master ONLYOFFICE DocSpace with video guides
+
+ h1. to <span style="color:#FF6F3D;">ONLYOFFICE</span> DocSpace!
+
+
+Hello, $UserName!
+
+You have just created ONLYOFFICE DocSpace, a document hub where you can boost collaboration with your team, customers, partners, and more. Its address is "${__VirtualRootPath}":"${__VirtualRootPath}".
+
+Your current tariff plan is STARTUP. It is absolutely free and includes:
+
+<table cellspacing="0" cellpadding="0" background="#ffffff" style="background-color: #ffffff; border: 0 none; border-collapse: collapse; border-spacing: 0; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; color: #333333; empty-cells: show; height: 0px; margin: auto; max-width: 342px; padding: 0; vertical-align: top; width: 100%; text-align: left;"><tbody><tr border="0" cellspacing="0" cellpadding="0"><td style="color: #FF6F3D; font-family: 'Open Sans', Helvetica, Arial, Tahoma; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 16px; padding-right: 16px; width: 5%;vertical-align: top;"> •</td><td style="font-family: 'Open Sans', Helvetica, Arial, Tahoma, sans-serif; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 16px; vertical-align: top;">100 admins/power users</td></tr><tr border="0" cellspacing="0" cellpadding="0"><td style="color: #FF6F3D; font-family: 'Open Sans', Helvetica, Arial, Tahoma; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 16px; padding-right: 16px; width: 5%;vertical-align: top;"> •</td><td style="font-family: 'Open Sans', Helvetica, Arial, Tahoma, sans-serif; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 16px; vertical-align: top;">Up to 100 rooms</td></tr><tr border="0" cellspacing="0" cellpadding="0"><td style="color: #FF6F3D; font-family: 'Open Sans', Helvetica, Arial, Tahoma; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 32px; padding-right: 16px; width: 5%;vertical-align: top;"> •</td><td style="font-family: 'Open Sans', Helvetica, Arial, Tahoma, sans-serif; font-size: 18px; line-height: 29px; margin: 0; padding-bottom: 32px; vertical-align: top;">100 GB disk space</td></tr></tbody></table>
+
+*Enjoy a new way of document collaboration!*
+
+$TrulyYours
+
+
+ Welcome to ONLYOFFICE DocSpace!
+
\ No newline at end of file
diff --git a/web/ASC.Web.Core/PublicResources/webstudio_patterns.xml b/web/ASC.Web.Core/PublicResources/webstudio_patterns.xml
index 8446131fda3..083ab99d4da 100644
--- a/web/ASC.Web.Core/PublicResources/webstudio_patterns.xml
+++ b/web/ASC.Web.Core/PublicResources/webstudio_patterns.xml
@@ -704,4 +704,10 @@ $activity.Key