Refactor email templates to use plain text format and update sender addresses
- Simplified the magic link email format to plain text for better compatibility. - Updated the welcome email to use plain text and changed the sender address to match the domain. - Enhanced event registration email format to plain text, removing HTML styling for a cleaner approach.
This commit is contained in:
parent
8143631364
commit
c3c8b6bcd4
5 changed files with 132 additions and 626 deletions
|
|
@ -1,29 +1,14 @@
|
|||
// server/emails/welcome.js
|
||||
export const welcomeEmail = (member) => ({
|
||||
from: 'Ghost Guild <welcome@ghostguild.org>',
|
||||
from: 'Ghost Guild <welcome@babyghosts.org>',
|
||||
to: member.email,
|
||||
subject: 'Welcome to Ghost Guild! 👻',
|
||||
html: `
|
||||
<div style="font-family: sans-serif; max-width: 600px; margin: 0 auto;">
|
||||
<h1>Welcome to the community, ${member.name}!</h1>
|
||||
|
||||
<p>You've joined the <strong>${member.circle} circle</strong>
|
||||
with a ${member.contributionTier}/month contribution.</p>
|
||||
|
||||
<h2>Your next steps:</h2>
|
||||
<ol>
|
||||
<li>Watch for your Slack invite (within 24 hours)</li>
|
||||
<li>Explore the <a href="https://ghostguild.org/members/resources">resource library</a></li>
|
||||
<li>Introduce yourself in #introductions</li>
|
||||
</ol>
|
||||
|
||||
<p>Thank you for being part of our solidarity economy!</p>
|
||||
|
||||
<hr style="margin: 30px 0; border: 1px solid #eee;">
|
||||
|
||||
<p style="color: #666; font-size: 14px;">
|
||||
Questions? Reply to this email or reach out in Slack.
|
||||
</p>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
subject: 'Welcome to Ghost Guild',
|
||||
text: `Hi ${member.name},
|
||||
|
||||
Welcome to the ${member.circle} circle.
|
||||
|
||||
Next steps:
|
||||
1. Watch for your Slack invite (within 24 hours)
|
||||
2. Explore the resource library: https://ghostguild.org/members/resources
|
||||
3. Introduce yourself in #introductions`
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue