Newsletter Plugin

Newsletter Plugin, a forum discussion on Jojo CMS. Join us for more discussions on Newsletter Plugin on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
lynchpin

13 Nov 2008
Posts: 60

I am working on implementing the newsletter plugin. I have everything working great except that I can't send a Newsletter from Jojo. I am able to create on, hit send, then go into Phplist, hit 'process queue' and it will then send.
In the config for phplist, I change 'MANUALLY_PROCESS_QUEUE' to 0, but didnt work.

Any other suggestions on what I have to do?
thanks
Jaijaz Jaijaz

13 Nov 2008
Posts: 215

Hey,

I had the same problem with I set it up for the first time. I found there were two things causing the problem.

First was php location on the server. The "send now" and "send preview" buttons actually run a script on the server, this is the same script that phplist use to set up the cron job if you want to get that way. This script needs to know the path to php on your server. I added the php path in as an option for the plugin to deal with different setups.

The second one came down to time zones. I had the site setup with a auckland/pacific timezone however the server which phplist uses was set to one of the US timezones. This meant that the messsage was added to the queue but it wouldn't process it for another 20 old hours. To fix this I simply changed the jojo time zone to match the server. It didn't mater in the scheme of the site I was working on but could affect other sites.

Hope that helps.
Jai
If you not living on the edge you taking up too much space.
lynchpin

14 Nov 2008
Posts: 60

Thanks for the reply, but still didnt do it. I have verified both of these settings, and tried various php paths to be sure I had that right.
There is a commented line in 'newsletter_send_now.php'
/* Send the message, which was queued, from phplist. So that commandline executions are possible, "root" was added as commandline_users in the config/config.php file. */

This got my attention and I wonder if I have to do something else with it?
Jaijaz Jaijaz

17 Nov 2008
Posts: 215

Was just doing a little poking around, it looks like you are to add "root" to this line in that config file.

$commandline_users = array("admin");

However the first line of the script says:
putenv('USER=admin');

Which I assumed meant that the Admin user was running the script and therefore was OK.

As a side note. I have it running fine, except it doesn't complete the send when I send out to a full 500 people list.

Perhaps Mike is watching and can add a comment?

Jai
If you not living on the edge you taking up too much space.
lynchpin

18 Nov 2008
Posts: 60

I just checked the error log and looks like the script is being stopped for security reasons:

Description: system() has been disabled for security reasons
File: /home/lpd/jojo/plugins/jojo_newsletter_phplist/json/newsletter_send_now.php
Line: 59


so, it seems that my web host is blocking access to the use of 'system()'. I am looking for a workaround for it now.
lynchpin

20 Nov 2008
Posts: 60

Got it working. I replaced the 2 'echo system' lines in the preview and send_now files with some CURL coding and it seems to work just fine.
searchmaster

26 Jun 2009
Posts: 19

So what was the curl coding???

That coding can be placed into the plugin as an option for sending.
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.