newsletter_drip_send.php - how to adjust option values
Posted
#6106
(In Topic #1473)

Standard member

I would like to decrease the minutes between sends and increase the mails per send for sending out Newsletters.
Looking in newsletter_drip_send.php I can see the options:
$minutes_between_sends = intval(get_option('minutes_between_sends'));
$mails_per_send = intval(get_option('mails_per_send'));
However I just cannot see where the values are being fetched from, I assummed the database, but I cannot find those values.
Any pointers please?
Cheers
Ade
Posted

Standard member

Posted

Standard member

I only have Page Text and Title in the Newsletter settings.
Cheers
Ade
Posted

Standard member


Posted

Site director

Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- 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 Composr whenever you see the opportunity or support me on Patreon.
- 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 Composr 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.
Posted

Standard member

We are using an old Version of Ocportal and they are not exposed in ours.
Ok, thanks for the pointer, I will continue to look
Cheers
Ade
Posted

Standard member

Cheers
Ade
Posted

Site director

Looking on your site, I see the actual code you have is doing get_value not get_option. I'm guessing you were referring to a different v10 test installation, or viewing on GitLab.
get_value options are hidden, and need to be set from OcCLE.
E.g to see current setting…
Code
:echo get_value('minutes_between_sends');
Code
:set_value('minutes_between_sends', '10');
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- 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 Composr whenever you see the opportunity or support me on Patreon.
- 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 Composr 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.
Posted

Standard member

Our current settings were 1 minute between sends and 100 emails in a send.
I did increase it to 200 in a send, but then that did not happen every minute as it appears that it was still sending the other 100.
I took about 24 hours to send 30,760 emails to all our users.
I always hoped that I could reduce that send time - will dig into the code a little more.
As always, thanks for your help.
Cheers
Ade
1 guest and 0 members have just viewed this.