I’m working on my church’s website, and part of what we need is a basic subscription system for visitors to choose which of a few different publications (newsletter, sermons, etc) they’d like to subscribe to by email. I have a system set up in place to take care of subscribing users, but what’s left to be done is an easy way for the church staff to send out the newsletter and other subscriptions.
What I would really like to do is have an email address set up (with a random string of characters for the name, like
[email protected] so it wouldn’t be easily guessed). Our office coordinator would send the newsletter email, for example, to that address, and then I’d have a cron job that runs a PHP script to check the email account, parse the email, and send a slightly customized version to each subscriber.
I’ve been reading a bit about MIME email and all of that, and it seems that it’s no easy task to reliably parse any email like I’d need to. I can’t count on the church staff to, say, only send plain text emails or anything, so this needs to mostly fool-proof.
Is this viable, or should I just use MODx documents and a custom module and some snippets to let the church staff just type their message and send it from there? I already have a basic way to do it in MODx that I setup, but I just figure it’s one less thing to teach them if I can set it up where they just send an email to a certain address and my PHP handles the actual distribution of the email.
I’ve seen a PEAR class or two for doing this, but I was kind of intimidated looking over it.
Any articles about doing this kind of thing or recommendations would be greatly appreciated. Thanks!