Skip to content

rssgoemail is an RSS to Email script in PHP

Notifications You must be signed in to change notification settings

christianriley/rssgoemail

 
 

Repository files navigation

rssgoemail

rssgoemail is a script that watches multiple RSS (or Atom) feeds and sends out an email digest if a new entry is found. It is a fork of the script by Abdul Ibad which used to live at http://ibad.bebasbelanja.com

Requirements

  • PHP > 5.3
  • a MySQL database
  • a cronjob

Installation

From Git

  • Clone this repo git clone https://github.com/e-dschungel/rssgoemail
  • Install simplepie using composer composer install
  • Create database using config/rssgoemail.sql
  • Rename config/config.dist.php to config/config.php and edit it according to your needs, see below
  • Add a cronjob which accesses rssgoemail.php regularly

From ZIP file

  • Download rssgoemail.zip (NOT Source Code (zip) or Source Code (tar.gz)) from https://github.com/e-dschungel/rssgoemail/releases/latest
  • Extract and upload it to your webserver
  • Create database using config/rssgoemail.sql
  • Rename config/config.dist.php to config/config.php and edit it according to your needs, see below
  • Add a cronjob which accesses rssgoemail.php regularly

Configuration

variable description
$rge_config['dbHost'] hostname of the database, localhost is very common
$rge_config['dbUser'] user used to connect to the database
$rge_config['dbPass'] password used to connect to the database
$rge_config['dbBase'] name of the database
$rge_config['dbTable'] name of the table
$rge_config['emailTo'] email adress of the reciepent of the email digest
$rge_config['emailFrom'] email adress shown as sender of the digest
$rge_config['emailSubject'] subject of the email digest
$rge_config['errorInFeed'] warning which is shown when the feed contains errors
$rge_config['dateFormat'] format of date and time, formatting specifiers like PHP's date function
$rge_config['cacheDir'] cache dir, needs to be writeable
$rge_config['cacheTime'] cache time in seconds, during this time no changes from feeds are recognized as the cached version is used
$rge_config['feedUrls'] array with URLs of RSS or Atom feeds to be watched

Changelog

Version 0.1

  • first public release (of this fork)

Version 0.2

  • upgrade to SimplePie 1.5
  • switch to PDO for database access to make script compatible to PHP 7
  • use SimplePie's internal hash functions (avoids duplicated emails)
  • fix for special characters in feed title

Version 0.2.1

  • decreased default cache time to 1800 seconds, improved documentation on cacheTime

About

rssgoemail is an RSS to Email script in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 86.8%
  • Python 13.2%