-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create sweepstakes-email.ts #3491
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you're pretty close! I think you should probably just use the sendBulkEmails
and leave out their usernames from the email data, but do include their names, like sendBulkEmails
expects.
backend/scripts/sweepstakes-email.ts
Outdated
const mailgunUrl = `https://api.mailgun.net/v3/mg.manifold.markets/messages` | ||
|
||
const recipientData = users.reduce((acc, user) => { | ||
acc[user.email] = { username: user.username } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is including their username necessary for each email? Did you know you can link to https://manifold.markets/me to link people to their profiles?
No description provided.