payload-plugin-newsletter 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.14.3] - 2025-07-23
2
+
3
+ ### Fixed
4
+ - Sign-in emails now use the magic link subject line from Newsletter Settings
5
+ - Broadcast provider now properly sends the from name along with the email address
6
+
1
7
  ## [0.14.2] - 2025-07-22
2
8
 
3
9
  ### Added
package/dist/index.cjs CHANGED
@@ -1640,6 +1640,8 @@ var BroadcastProvider = class {
1640
1640
  body: JSON.stringify({
1641
1641
  to: recipients[0],
1642
1642
  // Broadcast API expects a single recipient for transactional emails
1643
+ from: `${from.name} <${from.email}>`,
1644
+ // Include from name and email
1643
1645
  subject: params.subject,
1644
1646
  body: params.html || params.text || "",
1645
1647
  reply_to: params.replyTo || this.replyTo || from.email
@@ -2738,9 +2740,10 @@ var createSigninEndpoint = (config) => {
2738
2740
  siteName: settings?.brandSettings?.siteName || "Newsletter",
2739
2741
  expiresIn: config.auth?.tokenExpiration || "7d"
2740
2742
  }, config);
2743
+ const subject = settings?.emailTemplates?.magicLink?.subjectLine || (settings?.brandSettings?.siteName ? `Sign in to ${settings.brandSettings.siteName}` : "Sign in to your account");
2741
2744
  await emailService.send({
2742
2745
  to: subscriber.email,
2743
- subject: settings?.brandSettings?.siteName ? `Sign in to ${settings.brandSettings.siteName}` : "Sign in to your account",
2746
+ subject,
2744
2747
  html
2745
2748
  });
2746
2749
  } else {