Re: Simple Mailing List
| From: | Bogdan Stancescu | Date: | Thu, 30 May 2002 00:01:35 +0000 |
| Subject: | Re: Simple Mailing List | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99817@lists.php.net to get a copy of this message | ||
Randum Ian wrote:
Hi there, I need to sort out a "simple" mail script which does the following. I have started the brainstorm if someone else could help with the missing bits, where to look, etc: CHECK POP3 MAIL FOR MSG: --> crontab, but how??? Check out either running php from terminal or use wget/lynx to access a certain page.
IF MSG CHECK FROM EMAIL: --> put mail into array then check from mail against db??? That is, if you want to store the e-mail server-side. Alternatively, you can check destinations and send on-the-fly. Don't forget deleting the e-mail from the server - I don't remember if it's a setting for retrieving (flush) or if it's a distinct action for POP3. Alternatively use an IMAP account and set the mail as read and move old mail to folders based on date (monthly archives). Obviously, this is a personal suggestion for a simple server - you could then check from outside using IMAPS.
IF IT IS SEND TO EMAILS IN DB --> mail(blah) Therefore if an email is sent to 'email@blah.com' then it would be forwarded to everybody in the email db. This is as much as I need so was thinking of writing my own instead of using something else. Any views? Cheers, Ian. --- Randum Ian DJ / Reviewer / Webmaster, DancePortal (UK) Limited ian@danceportal.co.uk http://www.danceportal.co.uk DancePortal.co.uk - Global dance music media