Hi! A ex-staffer created a functions file that emails to me, as attachments, CSV files of 21 elists in the MySQL databases of multiple websites. It creates one email per CSV file. I'd like to changed the code to send multiple files per email. (So can I save them in my computer by save-all instead of one at a time.)
I've attached the current code. Instead of 21 separate emails, I'd like just 4, divided like so:
'website-subscribers' should include 3 attachments:
change the code to use arrays for the sets of data under each major category, rather than processing each list/site separately. write two new functions (keeping the old code as is.) the new add_all_subscribers_lists_array() function would build arrays of parameters inside the inner foreach() loop, then call a new add_subscriber_list_array() function once, after the end of the inner foreach() loop. the code in the new add_subscriber_list_array() function would loop over the arrays of input parame