Re: [PHP] Thoughts Please About Design Strategy for Club Mailing List
- Date: Wed, 30 Mar 2016 02:20:58 -0400
- From: Robert Cummings <robert@xxxxxxxxxxxxx>
- Subject: Re: [PHP] Thoughts Please About Design Strategy for Club Mailing List
On 16-03-29 06:48 PM, Stephen wrote:
I am building a LAMP site on a shared server, Hostpapa, and I want to be
able to send emails to a mailing list. I have build sites before, but a
mailing list is new to me.
Sendmail and cron are not available in this environment.
Cron may not be available on the host system, but is it available on
your local system? You could always have the following running locally
using whatever scheduler you fancy:
wget -O - -q -t 1 "https://yoursite/cron.php?key=BiG-SekReT-KEy"
When sending mail, if you feel 200 would be too much in one shot, store
the message in the database and assign an ID. Then have a recipients
table with the ID of each recipient, the ID of the email, and a status
of 0 or 1 for whether they've been sent the message. Now you have a
simple mail queue that can be handled by your cron script in batches of
whatever number of emails per minute you and your host deem reasonable.
Phone: 613-822-9060 +++ Cell: 613-600-2836
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php