WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
272 stars 98 forks source link

Users have no control over the emails they receive #1782

Open cameronjonesweb opened 1 year ago

cameronjonesweb commented 1 year ago

Description

Users have no control over the amount, or type, of emails they receive.

Step-by-step reproduction instructions

  1. Join any course.
  2. Complete a quiz at the end of a lesson. You will receive a quiz results email, while you are looking at a screen with the exact same information.
  3. Now don't finish the course, and don't log in for a few days. You will receive an email from the system complaining that you haven't logged in.

I find these emails unhelpful, redundant and patronising. Other people might find them useful, but I should at the very least be able to turn off these emails.

Expected behaviour

Emails aren't sent if the user doesn't want emails

Actual behaviour

Emails are sent without a user opting in to receive emails or any way to disable them

Screenshots or screen recording (optional)

"Quiz graded" email image Quiz results page that you see when you are sent the above email with the same content. image All the emails I have received in the past week that I don't want. image Patronising email you receive if you haven't logged in for a couple of days image

Environment information

N/A

jonathanbossenger commented 1 year ago

Hi @cameronjonesweb, thank you for raising this issue.

This seems to be a feature of the Sensei plugin we're using on Learn WordPress for managing courses. I am currently chatting with the Sensei team, to find out if there is a way for users to manage this. If not, I'm also asking if admins can turn these emails off per user, or system wide.

Please bear with me while I dig into this, and I'll get back to you with a resolution as soon as I can.

jonathanbossenger commented 1 year ago

Hello @cameronjonesweb thanks for your patience.

I email system is something new that was added to the LMS plugin we're using for Learn WordPress (Sensei) recently. I have disabled the course reminder and quiz complete emails, and I will be logging a feature enhancement request with Sensei, to see if we can improve this feature to give the user control over their emails.

I am going to leave this open for now, but please let me know here if you receive any more emails you don't expect.

cameronjonesweb commented 1 year ago

Thanks @jonathanbossenger, much appreciated

unprintedch commented 6 months ago

After a quick research i found this: https://github.com/Automattic/sensei/blob/f6a76551a5e6b154e82426c89dc31563b77f504d/includes/class-sensei-emails.php#L183

I tested it on a clean installation, I managed to prevent email to being sent to a specific email address.

We could:

I don't know how long would sensei take to add this. Would it be worth the effort?

jonathanbossenger commented 6 months ago

Nice work on the research @unprintedch

At this stage, it might be worthwhile considering if we (the training team) can add this ourselves.

What would be good is if we could align this with any development that might need to be done under the Learning Pathways on Learn WordPress redesign, because I am sure there will be some custom development we will need to bring over/create for this re-launch.

unprintedch commented 6 months ago

OK, so count me in if you need this to go forward.

unprintedch commented 6 months ago

There was some move on this matter. I had some news in slack here

Should we close this?

jonathanbossenger commented 6 months ago

I think this is still a valid issue to keep open because while we have disabled some of the emails, it would still be ideal if we could allow users to enable or disable them on a per-account basis.

donnapep commented 6 months ago

Hey all. :wave: We have an open Sensei PR if you'd like to check it out - https://github.com/Automattic/sensei/pull/7586.

donnapep commented 5 months ago

A solution for this shipped in Sensei 4.24.0. 🥳

jonathanbossenger commented 5 months ago

Ooo thanks @donnapep. @unprintedch this should be possible to test in the local dev environment, would you be able to test this?

I'm not sure if the local env has some sort of mail catcher, but you could manually install a mail log plugin for WP, and test that way.