Re: Mailing list integration help? [message #14824 is a reply to message #14792] |
Fri, 21 November 2003 18:24 |
blackops
Messages: 12 Registered: July 2003
Karma:
|
Junior Member |
|
|
I have written a script that logs into a POP server and grabs one message at a time, routing them through mailinglist.php. Here is the code. Notice the few places I have <TEXT>. Please replace those occurrances (including the "<" and ">") with the actual values.
This script creates a temp file, logs into a POP server, downloads one message at a time, storing it in the temp file, and pipes the contents of that file into maillist.php. It expects two command-line arguments: POP_account_name and list_id.
Example from the command line:
php -q /home/virtual/site2/fst/var/www/html/test/fmail.php f-general-user 2
[EDIT: instead of pasting script contents, attached script as file.]
-
Attachment: fudmail.php
(Size: 1.25KB, Downloaded 571 times)
[Updated on: Fri, 21 November 2003 18:26] Report message to a moderator
|
|
|