• I am just now experimenting with this plugin. It looks like the one I need as a “WP Editor” can send e-mails to users. It appears to work fine if I send e-mails to individuals; each recipient plus the sender receive the e-mail one time. If I send to a group (based on WP Role), each member of the group plus the sender receives the e-mail twice. Not sure what to do. Thanks, Bruce

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    There are a couple things to try.

    I would probably take a look at the debug mode (there is a setting on the plugin settings page – Dashboard > Settings > Email Users). In debug mode the plugin will not send the email, instead it will dump the email headers tot he Dashboard so you can look at them. You can verify if the user email addresses are actually appearing in the header twice.

    Are there any other plugins which affect wp_mail() installed?

    Thread Starter brucerfay

    (@brucerfay)

    Hi Mike. Thanks fro the quick response.

    I turned on the debug mode and sent two test e-mails. One was to an individual recipient, the other was to a group (WP Contributor role) which only had one member. I captured the debug information from each test in separate Notepad TXT files. I can attach these to an e-mail or put them in my Dropbox and send you the link to the folder if you want to see them.

    I don’t see any obvious differences between the two tests that would suggest the group e-mail recipients or sender are being loaded twice, but then I do not really understand what I am looking at. I should note that in the plugin Settings the “Copy to Sender (cc: …)” box is NOT checked, but my sending e-mail address is being cc:d in both cases.

    I do not have any other plugins installed that are similar to Email Users, but I do have WP-Members, Participants Database, and Fast Secure Contact Form. All three of those plugins are capable of generating e-mails. I presume they do so using the wp_mail() function as I have not set up anything to use SMTP. I am a “point-n-click” WP user, not a PHP guy, but I will do the best I can to followup on any suggestions you have.

    Thread Starter brucerfay

    (@brucerfay)

    PS – The two test e-mails in sent in Debug mode both got delivered to the recipient, but only one time for each test. They did not get delivered to the sender address. ~Bruce

    Plugin Author Mike Walsh

    (@mpwalsh8)

    This sounds like something else is doing something with wp_mail(). The wp_mail() function is what WordPress calls “pluggable” which means other plugins can change the behavior of wp_mail(). WordPress stopped doing pluggable functions at some point and now uses filters and actions but wp_mail() is one of the few (I think) functions which still is still “pluggable”.

    There is a section on the Email Users page which will tell you if wp_mail() is coming from WordPress itself or if another plugin has redefined wp_mail() and it is being loaded from somewhere else. Email Users itself does not redefine wp_mail(), it simply uses it.

    Can you check your Settings page and let me know if wp_mail() is coming from WordPress? If the “actual” and “expected” don’t match, then it is coming from a plugin.

    Thread Starter brucerfay

    (@brucerfay)

    Mike: Expected and actual are the same. They are both:

    /home/…/public_html/fmca-glcc.org/wp-includes/pluggable.php

    I have not looked inside the pluggable.php file.

    This website uses the RESPONSIVE Theme.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Hmmm … the Responsive theme rings a bell as something like this coming up before. It is possible my memory is faulty and I recall Responsive being involved when it really was another theme.

    Is your site in a state where you can tentatively switch themes to see if the theme is doing something wrong? I ask because if you can switch to something like TwentyTen and see if the problem persists we can eliminate the Responsive theme as part of the problem.

    I have run into several themes, particularly those with heavy use of AJAX, which cause double page loads. I would be very surprised if this is the issue here since this is all on the Dashboard and rarely have I seen themes change Dashboard behavior but eliminating a possible source always help narrow down the problem.

    Another thing to try before changing themes is to disable all plugins except Email Users and see if the problem persists. If the problem goes away, then we’re looking at some sort of plugin conflict.

    • This reply was modified 9 years, 2 months ago by Mike Walsh.
    Thread Starter brucerfay

    (@brucerfay)

    The site is still in development and not in active use yet, so it only has a small number of users for test purposes. That is why I am using it to test Email Users before deploying to three other sites. Two of those other sites also use the Response Theme. I will try what you suggest and let you know what I find. May take a few days to get results back to you. Thanks for your assistance.

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

The topic ‘Duplicate emails being sent’ is closed to new replies.