You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new email so that people are reminded of their weekly zoom call
Preview: "Reminder: You have an upcoming Healthy Habits meeting"
Subject: Reminder: You have an upcoming Healthy Habits meeting
Text: "Please click the link below to join the zoom call for Healthy Habits for the Long Haul"
The button links to a zoom link but point it to google for now
Create the sending function
Create a new endpoint at /api/emails/actions/send-healthy-habits-zoom-link
Its a POST request that queries the db for all ProgramEnrollments where the status is accepted, the program is healthy habits. Populate the user and grab their emails.
Then send out the email from step 1 using the function from step 2.
Make sure this endpoint is protected and they provide the right x-api-key header. See the admin creation endpoint to see how to do that.
(Maybe this works) Create a new github action that runs on a schedule. Make it run every Sunday at noon and it just hits the endpoint you made. Point it to https://rudra-utkscf-fork.vercel.app/ for now and we can change it later. Access the API key using ${{ secrets.API_KEY }} as it is stored as a "Repository Secret" (see the pr workflow to see more info on accessing secrets)
The text was updated successfully, but these errors were encountered:
RudraPatel2003
changed the title
HealthyHabits Scheduled Zoom Call
HealthyHabits Scheduled Zoom Call Email
Jan 8, 2025
Preview: "Reminder: You have an upcoming Healthy Habits meeting"
Subject: Reminder: You have an upcoming Healthy Habits meeting
Text: "Please click the link below to join the zoom call for Healthy Habits for the Long Haul"
The button links to a zoom link but point it to google for now
Create the sending function
Create a new endpoint at /api/emails/actions/send-healthy-habits-zoom-link
Its a POST request that queries the db for all ProgramEnrollments where the status is accepted, the program is healthy habits. Populate the user and grab their emails.
Then send out the email from step 1 using the function from step 2.
Make sure this endpoint is protected and they provide the right x-api-key header. See the admin creation endpoint to see how to do that.
The text was updated successfully, but these errors were encountered: