Classified Ad Email Automation
Automated email notifications for classified ad expiration
⚙️ Setup Required
The email automation functions have been created. To make them run automatically, you need to set up a cron job service to call these endpoints daily.
Function:
sendClassifiedExpiryWarningsWhat it does:
- Finds ads expiring in exactly 7 days
- Sends warning email to poster
- Includes ad details and expiration date
- Reminds them to post again if needed
Function:
processExpiredClassifiedsWhat it does:
- Finds ads that expired today
- Updates status to "expired"
- Sends thank you email
- Encourages posting another ad
Recommended: cron-job.org
- Go to cron-job.org and create a free account
- Create a new cron job for each function endpoint
- Set schedule to run daily (e.g., 9:00 AM)
- Add the function URLs from your dashboard
Function Endpoints:
7-Day Warnings:
https://your-app.base44.app/api/functions/sendClassifiedExpiryWarningsProcess Expired Ads:
https://your-app.base44.app/api/functions/processExpiredClassifieds✅ Best Practice
Run both functions once daily at 9:00 AM to ensure timely notifications
📋 What's Automated Now
Classified ads expire after 30 days - Already working
Users can post multiple classified ads - Pay $3 each time
Sellers can buy multiple subscriptions - Each adds 5 product slots
Email functions created - Need cron setup to run automatically