Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

SirSaltyy
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
dev ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 6:55pm
docs ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 6:55pm
prod ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 6:55pm

Copy link
Collaborator

@IanPhilips IanPhilips left a 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.

const mailgunUrl = `https://api.mailgun.net/v3/mg.manifold.markets/messages`

const recipientData = users.reduce((acc, user) => {
acc[user.email] = { username: user.username }
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants