HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Newsletter Cron Question

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#55920 (In Topic #12150)
Avatar

Honoured member

Hi chris, looking for some info. How do you adjust the settings on the Cron for the newsletter? Or at least look at them? With a 9500 e-mail list, it took FOREVER to send a newsletter over the weekend and I was hoping to do some investigating and tweak the send.

The hope is to have an every-weekday newsletter…like we used to have (which I paid a service to send the e-mails). Just a little guidance needed…thanks.
Back to the top
 
Posted
Rating:
#55930
Avatar

Currently it sends 60 mails out every 10 minutes. i.e. on average one e-mail every 10 seconds.

I agree it should be configurable. This was added late in the process when we found some web hosts put restrictions on.

The attached file adds a couple of new hidden options:

Attachment
sources/hooks/systems/cron/newsletter_drip_send.php
» Download: newsletter_drip_send.php (1.67 Kb, 146 downloads so far)


To set the options type commands in OcCLE. This would affirm the current defaults (as an example, obviously it would end up doing nothing):

Code

:set_value('minutes_between_sends','10');
:set_value('mails_per_send','60');
But in your case I imagine something like this would suit you:

Code

:set_value('minutes_between_sends','1');
:set_value('mails_per_send','30');

I haven't tested it, so please let me know it it works correctly.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#55959
Avatar

Honoured member

Ok, I put that in, and ran it so that it sends 100 every 10 minutes - that theoretically will send all e-mails within a 24 hour period no problem with a little room to grow.

It Seems to be working (I had to watch the # of entries in the Drip send in phpmyadmin for a half hour to make sure, no easy way to see "Progress" of a specific send…)

question: The e-mail that gets sent when a cron job is run, It's run by the script in cronbridge, right? I have them going somewhere that they can just go and I don't have to look at them unless I need to…so I was looking at them for clues.

90% of them seem to be just this:

Expires: Mon, 20 Dec 1998 01:00:00 GMT
Last-Modified: Tue, 27 Oct 2009 13:20:01 GMT
Pragma: no-cache
X-Powered-By: ocPortal 4.2.1 (PHP 5.2.11)
Set-Cookie: has_cookies=1; expires=Wed, 24-Feb-2010 13:20:01 GMT; path=/; domain=.dimestoreproductions.com
Set-Cookie: ocp_session=1819387514; expires=Tue, 27-Oct-2009 18:20:01 GMT; path=/
Content-type: text/plain

but every now and then one will have a bunch of code in it too, which seems to read like a page output - not sure about them…

the question is - is there a way to show the completed tasks of the cron instance in that? Like a simple "ran Drip_send" or tell what specifically something else that runs is? Might help us site runners to know what's going on so we can be that little bit more at ease that our sites are running correctly.

Which, I think it is…so no biggie here…just asking.

Back to the top
 
Posted
Rating:
#55973
Avatar

question: The e-mail that gets sent when a cron job is run, It's run by the script in cronbridge, right? I have them going somewhere that they can just go and I don't have to look at them unless I need to…so I was looking at them for clues.

Yes

the question is - is there a way to show the completed tasks of the cron instance in that? Like a simple "ran Drip_send" or tell what specifically something else that runs is? Might help us site runners to know what's going on so we can be that little bit more at ease that our sites are running correctly.

Currently the answer is no.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#56005
Avatar

Honoured member

bummer

 :lol:
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: