get values (emails) from an array and pass them to wp_mail
-
Hello, I hope you can help me, I thank you in advance.
I have a variable with many values, they are emails obtained from a subscription form that I created and what I need is to get those emails to send them with wp_mail but I don’t know how to do it.
at the moment I have this:
$ emails_all_subscription = get_user_meta ($ vendor_id, ‘subscribers3’, true);echo “
"; var_export ($ emails_all_subscription); echo "
“;
and the result is like this:
array (
0 =>
array (
0 =>
array (
0 =>
array (
0 =>
array (
0 => ‘[email protected]’,
),
1 => ‘[email protected]’,
),
1 => ‘[email protected]’,
),
1 => ’22 @ gmail.com ‘,
),
1 => ’44 @ gmail.com ‘,
)I only need to see the 5 emails or pass the 5 (and those that are added through the form) to wp_mail.
Surely it is very simple but I do not realize among so many options that there seem to be to display an array.
Thank you
- The topic ‘get values (emails) from an array and pass them to wp_mail’ is closed to new replies.