- π―π΄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 7:31pm 6 November 2023 - πΊπΈ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 β .