Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 0cdd81e

Browse files
author
Matt Allan
authored
Remove emojis from email subject and add site title. (#724)
* Remove emojis from email subject and add site title. * add changelog entry
1 parent 6783f11 commit 0cdd81e

6 files changed

+13
-11
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
= 7.7.1 - 2024-xx-xx =
44
* Fix - Only show the individual subscription information in customer notification emails, not all subscriptions purchased in the initial order.
5+
* Fix - Resolved issues with Customer Notification emails not being sent due to unsupported emoji used in the default email subject.
56

67
= 7.7.0 - 2024-11-13 =
78
* Add - New Customer Notification feature: sends reminder emails for upcoming subscription renewals, trials ending, and subscription expirations.

includes/emails/class-wcs-email-customer-notification-auto-renewal.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ public function __construct() {
2828
$this->heading = __( 'Automatic renewal notice', 'woocommerce-subscriptions' );
2929

3030
$this->subject = sprintf(
31-
// translators: %1$s: number of days until renewal, %2$s: customer's first name.
32-
_x( 'Your subscription automatically renews in %1$s, %2$s ♻️', 'default email subject for subscription\'s automatic renewal notice', 'woocommerce-subscriptions' ),
31+
// translators: $1: {site_title}, $2: {customers_first_name}, $3: {time_until_renewal}, variables that will be substituted when email is sent out
32+
_x( '[%1$s] %2$s, your subscription automatically renews in %3$s!', 'default email subject for subscription\'s automatic renewal notice', 'woocommerce-subscriptions' ),
33+
'{site_title}',
34+
'{customers_first_name}',
3335
'{time_until_renewal}',
34-
'{customers_first_name}'
3536
);
3637

3738
$this->template_html = 'emails/customer-notification-auto-renewal.php';

includes/emails/class-wcs-email-customer-notification-auto-trial-expiration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function __construct() {
2626
$this->description = __( 'Free trial expiry notification emails are sent when customer\'s free trial for an automatically renewd subscription is about to expire.', 'woocommerce-subscriptions' );
2727

2828
$this->heading = __( 'Free trial expiration: automatic payment notice', 'woocommerce-subscriptions' );
29-
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
30-
$this->subject = sprintf( _x( 'Your paid subscription starts soon, %s 🗓️', 'default email subject for free trial expiry notification emails sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
29+
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
30+
$this->subject = sprintf( _x( '[%1$s] %2$s, your paid subscription starts soon!', 'default email subject for free trial expiry notification emails sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );
3131

3232
$this->template_html = 'emails/customer-notification-auto-trial-ending.php';
3333
$this->template_plain = 'emails/plain/customer-notification-auto-trial-ending.php';

includes/emails/class-wcs-email-customer-notification-manual-renewal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function __construct() {
2626
$this->description = __( 'Customer Notification: Manual renewal notice are sent when customer\'s subscription needs to be manually renewed.', 'woocommerce-subscriptions' );
2727

2828
$this->heading = __( 'Manual renewal notice', 'woocommerce-subscriptions' );
29-
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
30-
$this->subject = sprintf( _x( '%s, your subscription is ready to be renewed 👍', 'default email subject for notification for a manually renewed subscription sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
29+
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
30+
$this->subject = sprintf( _x( '[%1$s] %2$s, your subscription is ready to be renewed!', 'default email subject for notification for a manually renewed subscription sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );
3131

3232
$this->template_html = 'emails/customer-notification-manual-renewal.php';
3333
$this->template_plain = 'emails/plain/customer-notification-manual-renewal.php';

includes/emails/class-wcs-email-customer-notification-manual-trial-expiration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function __construct() {
2727
$this->description = __( 'Free trial expiry notification emails are sent when customer\'s free trial for a manually renewed subscription is about to expire.', 'woocommerce-subscriptions' );
2828

2929
$this->heading = __( 'Free trial expiration: manual payment required', 'woocommerce-subscriptions' );
30-
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
31-
$this->subject = sprintf( _x( 'Your free trial is almost up, %s ⏳', 'default email subject for an email notification for a manually renewed subscription with free trial expiry emails sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
30+
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out.
31+
$this->subject = sprintf( _x( '[%1$s] %2$s, your free trial is almost up!', 'default email subject for an email notification for a manually renewed subscription with free trial expiry emails sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );
3232

3333
$this->template_html = 'emails/customer-notification-manual-trial-ending.php';
3434
$this->template_plain = 'emails/plain/customer-notification-manual-trial-ending.php';

includes/emails/class-wcs-email-customer-notification-subscription-expiration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function __construct() {
2626
$this->description = __( 'Subscription expiration notification emails are sent when customer\'s subscription is about to expire.', 'woocommerce-subscriptions' );
2727

2828
$this->heading = __( 'Subscription expiration notice', 'woocommerce-subscriptions' );
29-
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
30-
$this->subject = sprintf( _x( 'Your subscription is about to expire, %s ⏱️', 'default email subject for subscription expiry notification email sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
29+
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
30+
$this->subject = sprintf( _x( '[%1$s] %2$s, your subscription is about to expire!', 'default email subject for subscription expiry notification email sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );
3131

3232
$this->template_html = 'emails/customer-notification-expiring-subscription.php';
3333
$this->template_plain = 'emails/plain/customer-notification-expiring-subscription.php';

0 commit comments

Comments
 (0)