Send email to user upon registration

Created on 24 January 2012, almost 13 years ago
Updated 13 October 2023, about 1 year ago

Hello,

Is there a plan in the road map of this project to include the ability to send emails to users whom have just registered to an event. A confirmation email, if you will.

Proposed new fields:
Under node/%node > registrations > settings

  • Confirmation Email
    • [checkbox] Send Confirmation Email If checked, an email will be sent to the registrant upon completion.
    • [textarea] Template The confirmation message sent to registrants. Tokens are supported if the module is enabled, E.g., [node:title].

SOLUTION: Use Rules, see #12 for tutorial.

✨ Feature request
Status

Closed: works as designed

Component

Registration Core

Created by

πŸ‡ΊπŸ‡ΈUnited States drewbe121212

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.

  • πŸ‡¨πŸ‡ΏCzech Republic pawleeq

    Hi,

    I am struggling heavily with this on Drupal 10, Registration 3.0.1 and Rules 8.x-3.0-alpha8.

    Broadcasting e-mail to registrants works.

    When trying to enable default Confirmation email (Structure > Registration Types > My type > check Enable confirmation email. The result is "The website encountered an unexpected error. Please try again later."

    Going with Rules... well nothing works. Configuration > Workflows > Rules > Add reaction rule. Events: After saving a new registration entity, Action: Send e-mail. Nothing happens even with hardcoded values, not using any wildcards.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Thanks @pawleeq, if you are able to post a stack trace of that error message from the logs please do. I realize this issue is mostly about Rules, but I would guess that if you uninstall Rules the confirmation setup page on the Registration Type would work - guessing something in Rules breaks when doing that setup. That said, might be wrong on that, a trace would help.

  • πŸ‡¨πŸ‡ΏCzech Republic pawleeq

    Ok, so i uninstalled Rules and flushed the caches. Confirmation email setup failed again and here is what comes out from the log:

    Type php
    Date Thursday, October 12, 2023 - 21:45
    User pawleeq
    Location https://nove.roubenkyasruby.cz/admin/structure/registration-types/reistr...
    Referrer https://nove.roubenkyasruby.cz/admin/structure/registration-types/reistr...
    Message TypeError: Cannot access offset of type string on string in Drupal\Component\Utility\NestedArray::setValue() (line 155 of /nove.roubenkyasruby.cz/core/lib/Drupal/Component/Utility/NestedArray.php).
    Severity Error

    Hope that helps.

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    So it isn't Rules. The confirmation feature is passing tests, so it may be a different module interfering or perhaps something in the registration module that has not been encountered before. I would like to assist further, if possible please post a database dump and web files dump and send a link to those to my Contact page on Drupal.org. I could then download those and debug the issue on my local test system. There is not enough in the trace to pinpoint the issue. Thank you!

  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    @pawleeq would you be able to create a new issue with the error message and we can pick this up in that thread. Since this one is closed and refers to creating the feature which is complete.

Production build 0.71.5 2024