Classified Ad Email Automation

Automated email notifications for classified ad expiration

7-Day Warning Emails
Sent 1 week before ad expires

Function:

sendClassifiedExpiryWarnings

What 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
Thank You Emails
Sent when ad expires

Function:

processExpiredClassifieds

What it does:

  • Finds ads that expired today
  • Updates status to "expired"
  • Sends thank you email
  • Encourages posting another ad
🔧 How to Set Up Automation
Use a cron job service to call these endpoints daily

Recommended: cron-job.org

  1. Go to cron-job.org and create a free account
  2. Create a new cron job for each function endpoint
  3. Set schedule to run daily (e.g., 9:00 AM)
  4. Add the function URLs from your dashboard

Function Endpoints:

7-Day Warnings:

https://your-app.base44.app/api/functions/sendClassifiedExpiryWarnings

Process Expired Ads:

https://your-app.base44.app/api/functions/processExpiredClassifieds

📋 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