https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2018-02-26T20:04:59ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=357832018-02-26T20:04:59ZBoone Gorgesboone@gorg.es
<ul><li><strong>File</strong> <a href="/attachments/7155">Screenshot_2018-02-26_13-51-54.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7155/Screenshot_2018-02-26_13-51-54.png">Screenshot_2018-02-26_13-51-54.png</a> added</li><li><strong>File</strong> <a href="/attachments/7154">Screenshot_2018-02-26_13-51-34.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7154/Screenshot_2018-02-26_13-51-34.png">Screenshot_2018-02-26_13-51-34.png</a> added</li></ul><p>Hi Laurie - Thanks for opening the ticket. It may be helpful to split some of these items into different tickets, but first let me see if I can eliminate some of them.</p>
<blockquote>
<p>In the group send area, often user role types are missing from the list of groups to send emails to.</p>
</blockquote>
<p>Without more details about just what the users are seeing, I have to guess a little bit at what's happening. I've attached two screenshots that show what I see on bmccsoc091.commons.gc.cuny.edu: the list of user roles on Dashboard > Users, and the roles available on Dashboard > Email Users > Send to Group(s). The roles on Dashboard > Users are Administrator, Author, Keymaster, Participant. On the EU page I see Administrator and Author. These latter roles are WP roles, while Keymaster and Participant are bbPress roles. So, the "groups" feature of Email Users only works for WP roles. It might be possible (though not easy, based on what I see in the Email Users code) to include bbPress roles, but for the time being, I'd suggest that administrators rely on the WP roles.</p>
<blockquote>
<p>only some students receive the email</p>
</blockquote>
<p>Unfortunately, it's hard to see exactly what's happening here without more detail. The plugin works by sending a single email to the <strong>author</strong>, which is then BCCed to each recipient. The "count" displayed in the success message - "Email sent to 45 users" etc - is based on the BCC count. It's not clear to me, from looking at the code, how only some of the BCCs would fail (unless they're not well-formed email addresses). It could be the fact that the GC is limiting the number of BCC entries on outgoing email - this is fairly common, as a spam-prevention measure - but this wouldn't explain the inconsistent results that your users are seeing.</p>
<p>If you could provide some specific information about a failed instance, it would be helpful. In particular, for a specific instance:<br />- The site where the email was created<br />- The date and time the email was created<br />- The email address of at least one user to whom the email appears to have been sent<br />- The email address of at least one user to whom the email appears <strong>not</strong> to have been sent</p>
<p>Before/after screenshots may be enough, as I'd be able to glean the email addresses from the Recipients area of the screenshot.</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=358302018-02-27T19:41:41ZLuke Waltzerlwaltzer@gc.cuny.edu
<ul></ul><p>Thanks for this, Boone. I'm reluctant to ask Laurie to go back to the faculty fellow to help with troubleshooting, as she's already spread pretty thin.</p>
<p>@Laurie, how about setting up a test site using accounts from TLC staff to see if we can recreate some of the problems Soniya was experiencing?</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=358372018-02-27T20:34:52ZLaurie Hurson
<ul></ul><p>Will do.</p>
<p>I have set up and test site and will try to recreate this issue and report back.</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=358872018-03-02T00:47:45ZLaurie Hurson
<ul><li><strong>File</strong> <a href="/attachments/7198">4 GRP email results.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7198/4%20GRP%20email%20results.png">4 GRP email results.png</a> added</li><li><strong>File</strong> <a href="/attachments/7196">2 GRP email.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7196/2%20GRP%20email.png">2 GRP email.png</a> added</li><li><strong>File</strong> <a href="/attachments/7197">1 -IND email .png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7197/1%20-IND%20email%20.png">1 -IND email .png</a> added</li><li><strong>File</strong> <a href="/attachments/7199">3 IND email results.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7199/3%20IND%20email%20results.png">3 IND email results.png</a> added</li></ul><p>HI all,</p>
<p>An update on this plugin:</p>
<p>I trail ran it on <a class="external" href="https://coursetest.commons.gc.cuny.edu/">https://coursetest.commons.gc.cuny.edu/</a></p>
<p>Today 3/1 attempted to send to multiple Individuals (11:30am) and the "authors" group (11:32am). Screenshots 1 and 2.</p>
<p>It looks like the email only went to 1 user (Luke) in both sending methods. Screenshots 3 and 4.</p>
<p>The only person who received the email was Luke. Of note, he was the only user (author) added to the site before email users plugin was installed.</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=358912018-03-02T16:24:17ZBoone Gorgesboone@gorg.es
<ul></ul><p>I spent a few minutes looking at how Email Users works. It appears that it only allows emails to be sent to users who have opted into "mass emails". See <a class="external" href="https://coursetest.commons.gc.cuny.edu/wp-admin/admin.php?page=mailusers-user-settings">https://coursetest.commons.gc.cuny.edu/wp-admin/admin.php?page=mailusers-user-settings</a>. Of the people you emailed to, only Luke has the setting turned on. This is true for both "individual" and "group" emails.</p>
<p>Looking into this, it is becoming clear that this plugin is not appropriate for use on Multisite:<br />- The "mass email" user setting is <strong>networkwide</strong>. If it's changed on <a class="external" href="https://coursetest.commons.gc.cuny.edu/wp-admin/admin.php?page=mailusers-user-settings">https://coursetest.commons.gc.cuny.edu/wp-admin/admin.php?page=mailusers-user-settings</a>, it'll be changed for every other site on which the user is a member. There's no finer-grained controls.<br />- The plugin attempts to set a default "mass email" setting for new users, but the way it's done doesn't mesh cleanly with Multisite at all. It uses the 'profile_update' and 'user_register' hooks, which fire in much different sequence in a multisite environment than in non-MS WordPress.</p>
<p>Based on the above, I'd suggest we look for a better solution for mass-emailing from the WordPress side than Email Users. Indeed, given the above, I'd almost suggest disabling it for anyone who doesn't already have it activated, as it's likely to cause more headache than not. Matt, Luke, Laurie, do you have thoughts about how to proceed?</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=358952018-03-02T17:35:59ZMatt Goldmattgold@gmail.com
<ul></ul><p>Hi Boone,</p>
<p>I'm fine with disabling it for anyone who doesn't already have it enabled, and I do think we should look into (or perhaps create) an alternative. This is very much related to OER work so we can draw from those funds if we need to write something new.</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=359032018-03-02T20:07:29ZBoone Gorgesboone@gorg.es
<ul></ul><p>Thanks, Matt. I'm going to put a fix in place immediately that disables Email Users on sites where it's not already active. <a class="external" href="https://github.com/cuny-academic-commons/cac/commit/0084fea54a7b0b4848e772160ec3e83af58bda3c">https://github.com/cuny-academic-commons/cac/commit/0084fea54a7b0b4848e772160ec3e83af58bda3c</a></p>
<p>It may turn out in the medium- to long-term that we need to build something custom, especially if we want to avoid the overhead of maintaining two separate email systems in perpetuity. More specifically, it would be ideal if a tool was available for use on the WP Dashboard that shared its internals with the email tools we use on the BP side of the site.</p>
<p>However, in the meantime, I think it's worth looking at a few existing solutions that'd be better than nothing while we work toward an ideal solution for the Commons. Based on some very brief research, here are some possibilities:<br />- We already have the Newsletters plugin on the Commons, and it seems to work fairly well for sending mass emails. The concept of a Newsletter is a bit different from emailing site users (the concept of "subscription" doesn't quite fit) but it could likely be used without too much trouble.<br />- <a class="external" href="https://premium.wpmudev.org/project/mass-email-sender/">https://premium.wpmudev.org/project/mass-email-sender/</a><br />- <a class="external" href="https://wordpress.org/support/plugin/wp-email-users">https://wordpress.org/support/plugin/wp-email-users</a> At a <strong>very</strong> quick glance at the code, it appears that this one should work properly on multisite. No idea whether it has the feature set we are looking for.<br />- <a class="external" href="https://wordpress.org/plugins/send-email-from-admin/">https://wordpress.org/plugins/send-email-from-admin/</a> looks much more barebones but at least compatible with multisite</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=359042018-03-02T20:13:26ZMatt Goldmattgold@gmail.com
<ul></ul><p>Thanks, Boone. Luke and Laurie, can you please look into these alternatives?</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=359052018-03-02T20:18:49ZLuke Waltzerlwaltzer@gc.cuny.edu
<ul></ul><p>Mass Email Sender looks like it's built for whole network emails (may have site specific functions, too, but we don't want the former). WP-Email-Users looks great. Happy to take it for a spin Boone if you want to deploy either to dev or on <a class="external" href="https://coursetest.commons.gc.cuny.edu/">https://coursetest.commons.gc.cuny.edu/</a>.</p>
<p>Thanks-</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=359062018-03-02T20:44:14ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Testing Required</i></li></ul><p>Sure thing, Luke. I've added it to the dev environment. Please play carefully there - it will send emails to anyone. Let me know what you think after you've had a chance to play around. <a class="external" href="https://github.com/cuny-academic-commons/cac/commit/70312df0cacb311786463a778bc24f15b0fbf727">https://github.com/cuny-academic-commons/cac/commit/70312df0cacb311786463a778bc24f15b0fbf727</a></p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=359072018-03-02T21:03:10ZLuke Waltzerlwaltzer@gc.cuny.edu
<ul></ul><p>It works, but it's not ideal, and seems not to be multisite aware... all emails come from <a class="email" href="mailto:commons@gc.cuny.edu">commons@gc.cuny.edu</a>, and there's no site-specific indicator in the emails (though you could create one via a template). I worry about a bunch of responses coming into that account should that be the from address...</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=360392018-03-13T15:58:22ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>Testing Required</i> to <i>Reporter Feedback</i></li><li><strong>Target version</strong> set to <i>1.12.11</i></li></ul><p>Luke, is the From address the only issue? This might be something we can fairly easily override.</p>
<p>I haven't spent any time with the "template" feature to see how it works. Do you see this (and the related manual intervention) as a dealbreaker for the plugin? Do you have thoughts about how the process might be automated?</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=362882018-03-27T15:21:22ZRaymond Hoh
<ul><li><strong>Target version</strong> changed from <i>1.12.11</i> to <i>1.12.12</i></li></ul> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=363442018-03-29T21:06:14ZMatt Goldmattgold@gmail.com
<ul><li><strong>Assignee</strong> set to <i>Boone Gorges</i></li></ul> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=364612018-04-10T14:41:47ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.12.12</i> to <i>1.12.13</i></li></ul> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=366832018-04-24T14:09:20ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.12.13</i> to <i>1.14</i></li></ul><p>Moving into the next major release for investigation. When the Teaching Fellows team has a chance to do a bit of additional research, we can move forward with next steps.</p> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=400342018-10-24T16:34:24ZBoone Gorgesboone@gorg.es
<ul><li><strong>Target version</strong> changed from <i>1.14</i> to <i>Future release</i></li></ul> CUNY Academic Commons - Bug #9289: Email Users Pluginhttps://redmine.gc.cuny.edu/issues/9289?journal_id=748352022-11-07T15:12:27ZBoone Gorgesboone@gorg.es
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/17182">Support #17182</a>: Plugin Deprecation: WP Email Users</i> added</li></ul>