Resource icon

Daily Digest Email System 0.3

No permission to download
smoseley submitted a new resource:

Daily Digest Email System (version 0.1) - Daily email of recent activity on your forum

I put the attached together... it's a simple script that I run on a cron every midnight, but it gets the job done.

It requires the Pear Mail lib to work. You may want to turn this into a Zend-based plugin. I don't have the time. I just wanted to get it working.

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.

It's using Gmail to send, which has limitations, so...
Read more about this resource...


Active member
Smoseley, this is something we've wanted for such a long time! Thank you so much for the work you've already put into this.

Here are a few initial thoughts on some additional options for this plugin:

1. Have the ability to use your own server or VPS to send mail (as you mentioned).
2. Have the ability to choose weekly or daily mails.
3. Have the ability to choose "all new threads" or "most popular new threads" (with all sticky threads automatically included).
4. There likely needs to be a maximum number of threads to highlight in an e-mail (for busy boards) or give the admin the ability to select/deselect particular threads.
5. It would also be nice for selected mods or admins to receive a "test" e-mail in case any changes need to be made before it automatically goes out to the entire list.

Down the road, it would be amazing if members could choose to receive updates on forums A, C, D but not forum B and the like.


Well-known member
Nice job! That screenshot makes this a very desirable resource.

Hopefully someone can turn it into an add-on so that it makes things easier to maintain/install.

Thanks for sharing! :D
FYI, installation of this should be pretty easy for anyone experienced with Linux. Drop the PHP script in your webroot, install PEAR's Mail lib, and set a daily cron job, and you're all done!


Well-known member
FYI, installation of this should be pretty easy for anyone experienced with Linux. Drop the PHP script in your webroot, install PEAR's Mail lib, and set a daily cron job, and you're all done!
However for everyone else it's insanely hard...


I'll wait for an add on version, and hopefully one will come.
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 an XF or Zend developer), I don't know how to integrate the script into it, and I don't have the time to learn how (I have a full-time job).

But if anyone wants to turn this into a plugin, please feel free to use what I started!


Well-known member
Great!! now it make sense. I am planing to use this but I will be grateful if you can answer my concerns:
  • Will google and other mail services mark my website emails as spam (this will be a great lost for me)
  • is there security that I should have or be aware of by using this file?
  • Option to select a specific thread or a different title
It looks promising


Active member
Another must have addition will be to give the admin the ability to select which forums are included in the digest e-mail. For example, many admins may want to omit off-topic or general discussion forums or private forums that aren't publicly accessible to everyone.


Well-known member
I followed your instruction and that what i got when visiting this page

Sending mail to: A lot of users emails listed.
Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /home/username/public_html/pear/Mail/smtp.php on line 348

Warning: include_once() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/public_html/pear/') in /home/username/public_html/pear/Mail/smtp.php on line 348

Fatal error: Class 'Net_SMTP' not found in /home/username/public_html/pear/Mail/smtp.php on line 349
This looks like a great resource.

Question, though - does it send the same email to everyone (digesting only threads from public forums), or is the email customized for each individual user based on their unique permissions and access to private forums?

Brent W

Well-known member
This is a great step toward a potentially great add-on.

Things that need to be done:

Convert it to an actual xenForo add-on. This means putting all settings in xenForo admin area, taking advantage of our configured email settings within xenForo and using xenForo's built in cron system.

More options needed:

Ability to select just threads instead of every post. That would be an incredibly long email for most of us with larger sites.

Logging: Log when each email is sent out and to how many people it was sent to.

I would gladly pay for such an add-on.