largersmallernormaltext version of this page

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0008720 [phplist] Message Send Process minor always 07-12-06 16:51 18-02-08 14:08
Reporter h2b2 View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved   Product Version 2.10.3
Summary 0008720: Using -p send from the commandline doesn't seem to work
Description This issue was reported by Gord Fisch (gfisch) on the forum: http://forums.phplist.com/viewtopic.php?t=7331 [^]

"Trying to get the command line to upload a message

/usr/local/bin/php /homedir/admin/lists/bin/phplist -psend -s New Member Notification -l 2 < $filename

I had this working on an older, hacked version of phplist on another server but the site has moved to a server with php 5. I updated to the latest version of phplist.

I upload a different message every night with the above then process the queue.

All paths and so on are correct, the $filename exists and has content but when I run the command,
phplist sets up a 'draft' message with no subject and no content. "

This is the fix gfisch suggested:

I added some lines in send_core.php around line 80
That was creating a 'blank' draft and redirecting.
The redirecting caused problems for the commandline.

original:
Redirect($_GET["page"]."&id=$id");

new:
if(!$GLOBALS["commandline"]){
Redirect($_GET["page"]."&id=$id");
exit;
}
Additional Information The problem apparently occurred on a PHP 5 server.
Tags No tags attached.
Attached Files

- Relationships
related to 0003721closed phplist 2.10.x 

-  Notes
(0021822)
michiel (administrator)
07-12-06 16:58

I was always wondering whether anyone knew about and used the sending messages from commandline, but they obviously did. Nice one.
(0029820)
bas (developer)
26-07-07 21:24

Suggestion implemented and tested.


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker