Please run it on localhost:8000
or either change the value of BASE_URL
variable in src/function.php
accordingly
- A rate limit of 60 seconds per email submission is enforced to prevent spamming.
- Implemented using a
rate_limit.txt
file with timestamps for each email.
- All outgoing emails (verification, unsubscription, comic delivery) follow the exact HTML formatting as per requirements.
- Includes a visible Unsubscribe link in the comic emails.
- Clean separation of logic inside
functions.php
using modular, reusable functions. - Strict adherence to file names and function names — no deviations from the given stubs.
- Developed and tested the entire system on WSL with a fully working
setup_cron.sh
. - Includes manual testing capability via:
php /mnt/c/Users/user/OneDrive/Desktop/xkcd-Rohan29-De-main/src/cron.php