Allow use by anonymous visitors

Created on 9 December 2022, almost 2 years ago
Updated 6 November 2023, about 1 year ago

Problem/Motivation

Currently, the module can only notify authenticated users on the site. Is there any plan to allow anonymous users to receive notifications by storing their contact information (e.g., email address)?

For me, this renders this module unusable as visitors never register accounts on the website.

✨ Feature request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada endless_wander

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡―πŸ‡΄Jordan heshamkh

    Hello endless_wander,
    i had a similar issue then I saw this https://www.drupal.org/node/2180227 β†’
    and this is how I solve this issue

       $owner_email = $entity->field_email->value;
        $message = Message::create(['template' => 'new_user_register_for_user']);
        $message->save();
        // use this options array with the mail key if you want to send it to user who is not yet registered but you have his email
       // for contact us form or similar use case 
        $options =['mail' => $owner_email ];
        // Send a message to email directly.
        $notifier->send($message, $options);
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    You might be able to get the Message stack to send emails to anonymous users. But Message stack really is not the best choice.

    You want something like Simple News β†’ .

Production build 0.71.5 2024