newsletter_drip_send.php - how to adjust option values

Post

Posted
Rating:
#5601 (In Topic #1147)
Hi,

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

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#5602
Setup->Configuration->Feature Options…in the Newsletter section.

Post

Posted
Rating:
#5603
Thanks for the response.
I only have Page Text and Title in the Newsletter settings.

Cheers
Ade

Post

Posted
Rating:
#5604
You have to access from the configuration options in Admin Zone:

newsletter.PNG

Post

Posted
Rating:
#5605
Ade is on a weird v9 fork that has aspects of v10, so this is likely where the issue lies. Maybe even the option doesn't properly exist, I'll have to check.

Post

Posted
Rating:
#5606
If only!
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

Post

Posted
Rating:
#5607
Ah Chris, just seen your response!

Cheers
Ade

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Lhasadreams)
#5608
Hi,

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');
and change setting…

Code

:set_value('minutes_between_sends', '10');

Post

Posted
Rating:
#5612
Thanks Chris.

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 recently viewed this.