Skip to content

dhruv-deb/php-emailservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¬ PHP GitHub Timeline Mailing Service

A simple PHP-based mailing system that delivers the latest public GitHub events to subscribed users every 5 minutes. Users verify their email before subscribing, and emails are sent using either Sendmail or Gmail SMTP. CRON jobs are used for automatic scheduling.

Made for an assignment for RTCamp.


πŸš€ Features

  • βœ… Email subscription and verification system
  • πŸ“© Sends GitHub timeline updates every 5 minutes
  • πŸ” Unsubscribe support via unique email links
  • πŸ“¨ Supports both sendmail and Gmail SMTP for sending emails
  • ⏰ CRON job integration for scheduled dispatch
  • πŸ—‚οΈ File-based storage using requirement.txt

πŸ“ Project Structure

β”œβ”€β”€ index.php # Subscription form & verification logic

β”œβ”€β”€ functions.php # Core helper functions (email, timeline fetch, code gen)

β”œβ”€β”€ unsubscribe.php # Unsubscribe endpoint

β”œβ”€β”€ cron.php # Script triggered by CRON to send GitHub timeline emails

β”œβ”€β”€ setup_cron.php # Script to help set up CRON job scheduling

β”œβ”€β”€ requirement.txt # Stores verified email addresses (acts as file-based DB)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published