Notify Admin of Subscribe/Unsubscribe

Created on 2 September 2023, about 1 year ago
Updated 17 December 2023, 11 months ago

Problem/Motivation

This is a follow up for https://www.drupal.org/project/simplenews/issues/345579

First I set up a new site on 9.5.10 and just installed Mailer and Simplenews.
I then created a newsletter people could subscribe to.

Using the regular "create account" procedure (not creating the user as admin), the user is allowed to also choose newsletters he wants to subscribe on the account creation form.

Once submitted, three mails are issued:
#1 a mail telling the user that the admin will confirm the account asap.
#2 a mail to the site admin, informing a new user account needs to be confirmed
#3 a mail to the admin that the user has subscribed to some newsletter.

#3 is the issue here:
a.) it's using [user:mail] instead of [simplenews-subscriber:mail] which can't be resolved.
b.) once I changed this to [simplenews-subscriber:mail] the mail address was given, but probably it would be better to link to the users' url -- but I can't see how to do this.
c.) Once the unser unsubscribed, that message wasn't send when re-subscribing, which is a pity. And unsubscribing didn't issue a message either.

Proposed resolution

I'm not sure whether there's a need for such a notification anyway, but if there is a notification, it should work for every subscribe and unsubscribe event, even when initiated by an admin. And maybe a message should also sent to the user, to allow for recovering from a mishap.

🐛 Bug report
Status

Postponed: needs info

Version

3.0

Component

Usability

Created by

🇦🇹Austria nofue

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nofue
  • Status changed to Postponed: needs info about 1 year ago
  • 🇬🇧United Kingdom adamps

    Where does #3 come from? The string [user:mail] does not exist in the simplenews codebase.

    Perhaps you installed a module or wrote a hook implementation? Your problem could come from 🐛 hook_simplenews_subscribe fires before subscription Active - the hook is fairly broken at the moment.

  • 🇦🇹Austria nofue

    Uhm, I'm sorry -- it was busy months, and I totally lost track what site I was referring to. Your assumptions however do not apply -- it was a site from scratch, but after upgrading so many sites to 10.x, I cannot remember which site it was. Maybe I should put the internal ticket ID to my issue reports ;) Happy Christmas, and just ni case: I'm still trying to get a manual together, but it needs time to test all the functions available (or not available …)

Production build 0.71.5 2024