Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5013

Update to 1.5.0 messed up wp_mail when looping through users.

$
0
0

Replies: 1

We created some custom code to loop through users and send an email out to them when a post is published. Very simplistically we are running get_users( $args ); and are looping through those users and sending email via wp_mail();. When doing this it would loop through all 200 users but it would only send out an email to the first person in the array. So the first email address got 200 of the same emails. Reverting back to version 1.4.2 fixed this issue. So something in 1.5 seems to have broken it.

Any idea what could have been the issue?


Viewing all articles
Browse latest Browse all 5013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>