diff --git a/src/mailer.ts b/src/mailer.ts
index 2784599..002b20c 100644
--- a/src/mailer.ts
+++ b/src/mailer.ts
@@ -29,12 +29,13 @@ const transporter = nodemailer.createTransport({
export const sendConfirm = (sub: Subscription) => {
const href = `${BASE_URL}/confirm?token=${sub.key}`
+ const settingsUrl = `${EVENT_VIEWER_URL.replace(/\/$/, '')}/settings/alerts`
return transporter
.sendMail({
from: SMTP_FROM,
to: sub.email,
- subject: `Confirm your ${BRAND_NAME} digest`,
+ subject: `Confirm your email for ${BRAND_NAME} notifications`,
html: `
@@ -42,18 +43,17 @@ export const sendConfirm = (sub: Subscription) => {
- ${BRAND_LOGO ? ` ` : `${BRAND_NAME}`}
- Digest notifications
+ ${BRAND_LOGO ? ` ` : ''}
+ ${BRAND_NAME}
|
- |
- Welcome to ${BRAND_NAME}!
- Please confirm that you would like to receive ${sub.frequency} digests by clicking the button below:
+ |
+ Please click below to confirm your email address. We'll send occasional emails with updates from your communities on ${BRAND_NAME}.
- Confirm Digest
+ Confirm
- Or visit: ${EVENT_VIEWER_URL}
+ To disable notifications, ignore this email. Or update your settings at ${EVENT_VIEWER_URL.replace(/^https?:\/\//, '')}/settings/alerts.
|
@@ -61,7 +61,7 @@ export const sendConfirm = (sub: Subscription) => {
`,
- text: `Please confirm that you would like to receive ${sub.frequency} digests by visiting: ${href}`,
+ text: `Please click below to receive emails for updates from your communities on ${BRAND_NAME}.\n\nConfirm: ${href}\n\nTo disable notifications, ignore this email. Or update your settings at: ${settingsUrl}`,
})
.catch(error => {
console.error('mailer: confirmation email failed', {