Considerations when adding a periodic email update function to my website (with PHP's mail() function)
July 21, 2008 2:56 PM
Subscribe
I'm planning to add a feature to my website that will allow users to request periodic updates by email. I've cobbled together a little PHP script that uses the mail() function. It works perfectly when I test it myself, but I have no idea how this will work when released to a signficant number of users.
One problem - I don't know how many users I'll have, so I'm trying to keep my up-front costs to a minimum. Optimistically, I'll have a few hundred users. In my wildest dreams, I'd have a few thousand.
Another problem - the email will be dynamically generated based on user-entered criteria - i.e., the user will log in, and enter some parameters. A php page will pull the appropriate data from the MySQL database, assemble the email, and send it out. Also, the emails will be sent on demand (not according to some predetermined schedule). So, I think that rules out something like Campaign Monitor's newsletter service.
My site is hosted at Media Temple, on a Grid Server.
Is this a disaster waiting to happen, or is that kind of demand/load trivial?
If the former, is there a better way to handle this? A reliable third-party service?
Many thanks in advance for any advice!
Cheers,
Matt Stuehler
posted by stuehler to technology (8 comments total)
posted by fogster at 3:43 PM on July 21