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 +6 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
2746
|
+
subject,
|
|
2744
2747
|
html
|
|
2745
2748
|
});
|
|
2746
2749
|
} else {
|