Title: [Plugin: Email Users] not valid email
Last modified: August 20, 2016

---

# [Plugin: Email Users] not valid email

 *  Resolved [gezazakarias](https://wordpress.org/support/users/gezazakarias/)
 * (@gezazakarias)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/)
 * after upgrading emai users module to version 4.3.1 i cant sent emails to individual
   users. It says email not valid. In my oppinion it dosnt load any emailaddresses
   in array because the errormessage dos not say whitch email is not valid (empty
   string).
 * [http://wordpress.org/extend/plugins/email-users/](http://wordpress.org/extend/plugins/email-users/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840054)
 * I am not sure if it is related but I just fixed a problem where some debug code
   was preventing email from being sent to users. I have spent about the last hour
   trying various combinations and cannot replicate what you are describing. Can
   you try 4.3.2 and let me know if it is still happening?
 *  Thread Starter [gezazakarias](https://wordpress.org/support/users/gezazakarias/)
 * (@gezazakarias)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840088)
 * Hi!
    I tryed 4.3.2 same result. I started debugging and fixed it. Cause: get_users
   function resturns an array that has as keys user ids not 0 to n numbers. The 
   hack: in mailusers_get_users function after code: `// Retrieve the list of users
   $users = get_users($args) ;` i inserted the code that chages keys in array as
   they were before: `$result = array(); $key=0; foreach ( $users as $u ) { $result[
   $key] = $u; $key++; } $users = $result;`
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840089)
 * That is interesting – in my development environment (PHP 5.3.13, WordPress 3.3.2),
   if I dump the array keys for $users, I see the users array have numeric indexes
   like this:
 *     ```
       Array
       (
           [0] => 308
           [1] => 885
           [2] => 341
       )
       ```
   
 *  Thread Starter [gezazakarias](https://wordpress.org/support/users/gezazakarias/)
 * (@gezazakarias)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840090)
 * I use WordPress 3.4
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840091)
 * I have just run a test on my main site which is running WordPress 3.4 under PHP
   5.2.17 and I get the same sort of array index.
 *     ```
       Array
       (
           [0] => 13
           [1] => 14
           [2] => 15
       )
       ```
   
 * Would you be willing to run some debug code on your site if I sent you a new 
   email-users.php file? You can also email me using my WordPress username at gmail.
   com.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840100)
 * Fixed in version 4.3.4! Thanks for the help in chasing down the problem.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Email Users] not valid email’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-email-users-not-valid-email/#post-2840100)
 * Status: resolved