Keep in mind that if you have a larger forum, you don't want to use a system like this to send your digest out.
You'll need to proxy it through an ESP so you don't get your website blacklisted by spam filters.
Nevertheless, I agree that adding it to an admin system and adding...
Whoah... I completely forgot about not including forums to which a user doesn't have permissions!!!! That's a scary hole!
However, considering that the email gets sent in aggregate, it should group people into user groups and just send emails by group (or simply ignore staff members'...
Ok.... I updated the file to simplify it - included the PEAR library, added configuration options (including a weekly-send option), and added lots of instructions.
Anyone who understands how to use FTP and has a cPanel should be able to do this now.
If you set up your XF website, you should...
I can try to simplify it a bit... I could include the Pear lib and zip it all up neatly. Would still require FTP and cron stuff. But I could probably put together a cPanel tutorial for setting up the cron job simply (cron is really a simple thing). Unfortunately, since I'm a Cake developer (not...
Here's PEAR Mail: http://pear.php.net/package/Mail/redirected
And here's a tutorial on cron jobs with cPanel: http://www.siteground.com/tutorials/cpanel/cron_jobs.htm
You would need to set up a cron even if you used a XF plugin.
I moved the script here: http://xenforo.com/community/resources/daily-digest-email-system.1100/
If someone wants to turn it into a plugin that would be cool. As it stands, you could do most of what you ask for with a little scripting. ;-)
Here is a daily digest email script... it's a very simple stand-alone script that runs on a cron every midnight.
What it Does
It grabs all the posts from the last 24 hours, neatly organizes them into a nice XF-styled email, and sends them to all users who chose to receive admin emails...