Automated birthday email system that sends wishes to customers at 7 AM daily.
- Simple UI to add birthday reminders (name, email, date)
- Daily 7 AM cron job checks for birthdays
- Sends personalized birthday emails via Gmail (service is specifically set to gmail)
- Tracks who has been emailed with
isEmailedflag - Only sends to users who haven't received email yet
- TODO: Use mailtrap instead of gmail
- First Fork or Clone the repo, then:
- Create
.envfile:
PORT=3000
MONGO_URI=mongodb://localhost:27017/birthday-reminder
EMAIL_USER=your@gmail.com
EMAIL_PASS=your_app_password- Install dependencies:
npm install-
Start MongoDB server
-
Run app:
npm start- Visit
http://localhost:3000 - Add birthday entries (name, email, date)
- App automatically sends birthday emails at 7 AM daily
- Only users with
isEmailed=falsereceive emails
Note: Requires Gmail App Password for email sending.
Birthday list shows only unemailed users by default.