diff --git a/lib/public/Mail/IEMailTemplate.php b/lib/public/Mail/IEMailTemplate.php index ed72744464730a8d53359bf0f6968bcb3b1eda31..3248665a7da8b50ca03bd4cbb6da9a613c0c26bc 100644 --- a/lib/public/Mail/IEMailTemplate.php +++ b/lib/public/Mail/IEMailTemplate.php @@ -39,7 +39,7 @@ namespace OCP\Mail; * * $emailTemplate->addHeader(); * $emailTemplate->addHeading('Welcome aboard'); - * $emailTemplate->addBodyText('You now have an Nextcloud account, you can add, protect, and share your data.'); + * $emailTemplate->addBodyText('Welcome to your Nextcloud account, you can add, protect, and share your data.'); * * $emailTemplate->addBodyButtonGroup( * 'Set your password', 'https://example.org/resetPassword/q1234567890qwertz', diff --git a/settings/Mailer/NewUserMailHelper.php b/settings/Mailer/NewUserMailHelper.php index db0339c73677788a94b6bcf2226e9399e4543085..bcd8ae0a538722c2089d33e8454f10a798f33c80 100644 --- a/settings/Mailer/NewUserMailHelper.php +++ b/settings/Mailer/NewUserMailHelper.php @@ -136,7 +136,7 @@ class NewUserMailHelper { } else { $emailTemplate->addHeading($this->l10n->t('Welcome aboard %s', [$displayName])); } - $emailTemplate->addBodyText($this->l10n->t('You now have an %s account, you can add, protect, and share your data.', [$this->themingDefaults->getName()])); + $emailTemplate->addBodyText($this->l10n->t('Welcome to your %s account, you can add, protect, and share your data.', [$this->themingDefaults->getName()])); $emailTemplate->addBodyText($this->l10n->t('Your username is: %s', [$userId])); if ($generatePasswordResetToken) { $leftButtonText = $this->l10n->t('Set your password'); diff --git a/tests/Settings/Mailer/NewUserMailHelperTest.php b/tests/Settings/Mailer/NewUserMailHelperTest.php index 9fd90561127806f63c010d5850d384eab9fbc073..f05a963e5371b4192042723f690aa5f4d438a666 100644 --- a/tests/Settings/Mailer/NewUserMailHelperTest.php +++ b/tests/Settings/Mailer/NewUserMailHelperTest.php @@ -237,7 +237,7 @@ class NewUserMailHelperTest extends TestCase { <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> <tr style="padding:0;text-align:left;vertical-align:top"> <th style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> - <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">You now have an TestCloud account, you can add, protect, and share your data.</p> + <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">Welcome to your TestCloud account, you can add, protect, and share your data.</p> </th> <th class="expander" style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0!important;text-align:left;visibility:hidden;width:0"></th> </tr> @@ -350,7 +350,7 @@ EOF; $expectedTextBody = <<<EOF Welcome aboard -You now have an TestCloud account, you can add, protect, and share your data. +Welcome to your TestCloud account, you can add, protect, and share your data. Your username is: john @@ -470,7 +470,7 @@ EOF; <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> <tr style="padding:0;text-align:left;vertical-align:top"> <th style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> - <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">You now have an TestCloud account, you can add, protect, and share your data.</p> + <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">Welcome to your TestCloud account, you can add, protect, and share your data.</p> </th> <th class="expander" style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0!important;text-align:left;visibility:hidden;width:0"></th> </tr> @@ -583,7 +583,7 @@ EOF; $expectedTextBody = <<<EOF Welcome aboard John Doe -You now have an TestCloud account, you can add, protect, and share your data. +Welcome to your TestCloud account, you can add, protect, and share your data. Your username is: john diff --git a/tests/data/emails/new-account-email-custom-text-alternative.txt b/tests/data/emails/new-account-email-custom-text-alternative.txt index 52da8957ab3c302a7b85865aeaa380ee059fb321..f65744b20d9069501a274462e83709b7ccc90665 100644 --- a/tests/data/emails/new-account-email-custom-text-alternative.txt +++ b/tests/data/emails/new-account-email-custom-text-alternative.txt @@ -1,6 +1,6 @@ Welcome aboard - text -You now have an Nextcloud account, you can add, protect, and share your data. - text +Welcome to your Nextcloud account, you can add, protect, and share your data. - text Your username is: abc diff --git a/tests/data/emails/new-account-email-custom.html b/tests/data/emails/new-account-email-custom.html index f5f3fbda21b9ce7c3527c34f1c9ba1f0b296c147..9d35a7f3515e3cdff6110e44a2915e5c8d0fe693 100644 --- a/tests/data/emails/new-account-email-custom.html +++ b/tests/data/emails/new-account-email-custom.html @@ -76,7 +76,7 @@ <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> <tr style="padding:0;text-align:left;vertical-align:top"> <th style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> - <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">You now have an Nextcloud account, you can add, protect, and share your data.</p> + <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">Welcome to your Nextcloud account, you can add, protect, and share your data.</p> </th> <th class="expander" style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0!important;text-align:left;visibility:hidden;width:0"></th> </tr> diff --git a/tests/data/emails/new-account-email-custom.txt b/tests/data/emails/new-account-email-custom.txt index 41ac8de8f49d7354401db5728967bfdf265d592f..57c5202a744ed03b516bc29f57c11f199c7d9a31 100644 --- a/tests/data/emails/new-account-email-custom.txt +++ b/tests/data/emails/new-account-email-custom.txt @@ -1,6 +1,6 @@ Welcome aboard -You now have an Nextcloud account, you can add, protect, and share your data. +Welcome to your Nextcloud account, you can add, protect, and share your data. Your username is: abc diff --git a/tests/data/emails/new-account-email-single-button.html b/tests/data/emails/new-account-email-single-button.html index f38741441098586f3abbd474788af8c4458e8b66..3746d5d2cbb3941cfa7cfd5fc8e19b009dfc823c 100644 --- a/tests/data/emails/new-account-email-single-button.html +++ b/tests/data/emails/new-account-email-single-button.html @@ -76,7 +76,7 @@ <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> <tr style="padding:0;text-align:left;vertical-align:top"> <th style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> - <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">You now have an Nextcloud account, you can add, protect, and share your data.</p> + <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">Welcome to your Nextcloud account, you can add, protect, and share your data.</p> </th> <th class="expander" style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0!important;text-align:left;visibility:hidden;width:0"></th> </tr> diff --git a/tests/data/emails/new-account-email-single-button.txt b/tests/data/emails/new-account-email-single-button.txt index f05f6136d169563e3dbd3148a324e1d06b85bdcc..0c9210f086a1d004fda6dff2e41f8b7fc32ab033 100644 --- a/tests/data/emails/new-account-email-single-button.txt +++ b/tests/data/emails/new-account-email-single-button.txt @@ -1,6 +1,6 @@ Welcome aboard -You now have an Nextcloud account, you can add, protect, and share your data. +Welcome to your Nextcloud account, you can add, protect, and share your data. Your username is: abc diff --git a/tests/data/emails/new-account-email.html b/tests/data/emails/new-account-email.html index 72daf3ec5c882f24d13efd92635a0892945e2629..d33cb540c38cf0f615af9c09d5eb9536704fc37b 100644 --- a/tests/data/emails/new-account-email.html +++ b/tests/data/emails/new-account-email.html @@ -76,7 +76,7 @@ <table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> <tr style="padding:0;text-align:left;vertical-align:top"> <th style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;text-align:left"> - <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">You now have an Nextcloud account, you can add, protect, and share your data.</p> + <p class="text-left" style="Margin:0;Margin-bottom:10px;color:#777;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;margin-bottom:10px;padding:0;text-align:left">Welcome to your Nextcloud account, you can add, protect, and share your data.</p> </th> <th class="expander" style="Margin:0;color:#0a0a0a;font-family:Lucida Grande,Geneva,Verdana,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0!important;text-align:left;visibility:hidden;width:0"></th> </tr> diff --git a/tests/data/emails/new-account-email.txt b/tests/data/emails/new-account-email.txt index 66d7dbc906a913f89933e842aeac8e73bf4d6ec9..895241341831c8349c0912903c7f94bce82ae96d 100644 --- a/tests/data/emails/new-account-email.txt +++ b/tests/data/emails/new-account-email.txt @@ -1,6 +1,6 @@ Welcome aboard -You now have an Nextcloud account, you can add, protect, and share your data. +Welcome to your Nextcloud account, you can add, protect, and share your data. Your username is: abc diff --git a/tests/lib/Mail/EMailTemplateTest.php b/tests/lib/Mail/EMailTemplateTest.php index fce214a82aa2a61d95bdbc5d6e20522694e29fe0..339cd95defc7df3b28231c919cc47be9fa9be386 100644 --- a/tests/lib/Mail/EMailTemplateTest.php +++ b/tests/lib/Mail/EMailTemplateTest.php @@ -76,7 +76,7 @@ class EMailTemplateTest extends TestCase { $this->emailTemplate->addHeader(); $this->emailTemplate->addHeading('Welcome aboard'); - $this->emailTemplate->addBodyText('You now have an Nextcloud account, you can add, protect, and share your data.'); + $this->emailTemplate->addBodyText('Welcome to your Nextcloud account, you can add, protect, and share your data.'); $this->emailTemplate->addBodyText('Your username is: abc'); $this->emailTemplate->addBodyButtonGroup( 'Set your password', 'https://example.org/resetPassword/123', @@ -117,7 +117,7 @@ class EMailTemplateTest extends TestCase { $this->emailTemplate->addHeader(); $this->emailTemplate->addHeading('Welcome aboard'); - $this->emailTemplate->addBodyText('You now have an Nextcloud account, you can add, protect, and share your data.'); + $this->emailTemplate->addBodyText('Welcome to your Nextcloud account, you can add, protect, and share your data.'); $this->emailTemplate->addBodyText('Your username is: abc'); $this->emailTemplate->addBodyButtonGroup( 'Set your password', 'https://example.org/resetPassword/123', @@ -156,7 +156,7 @@ class EMailTemplateTest extends TestCase { $this->emailTemplate->addHeader(); $this->emailTemplate->addHeading('Welcome aboard'); - $this->emailTemplate->addBodyText('You now have an Nextcloud account, you can add, protect, and share your data.'); + $this->emailTemplate->addBodyText('Welcome to your Nextcloud account, you can add, protect, and share your data.'); $this->emailTemplate->addBodyText('Your username is: abc'); $this->emailTemplate->addBodyButton( 'Set your password', 'https://example.org/resetPassword/123', @@ -197,7 +197,7 @@ class EMailTemplateTest extends TestCase { $this->emailTemplate->addHeader(); $this->emailTemplate->addHeading('Welcome aboard', 'Welcome aboard - text'); - $this->emailTemplate->addBodyText('You now have an Nextcloud account, you can add, protect, and share your data.', 'You now have an Nextcloud account, you can add, protect, and share your data. - text'); + $this->emailTemplate->addBodyText('Welcome to your Nextcloud account, you can add, protect, and share your data.', 'Welcome to your Nextcloud account, you can add, protect, and share your data. - text'); $this->emailTemplate->addBodyText('Your username is: abc'); $this->emailTemplate->addBodyButtonGroup( 'Set your password', 'https://example.org/resetPassword/123',