Immediate confirmation email for completed registrations

Created on 22 May 2023, over 1 year ago
Updated 30 May 2023, over 1 year ago

Problem/Motivation

I have a registration scheduled action set to execute 1 minute after Registration completed and set the the registration type default state to 'complete'. The email isn't being sent because I cannot configure Cron to run frequently enough in my shared hosting environment. Can we get an immediate confirmation email option instead of using scheduled actions for this.

✨ Feature request
Status

Fixed

Version

3.0

Component

Registration Confirmation

Created by

πŸ‡¦πŸ‡ΊAustralia neubreed

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

Comments & Activities

  • Issue created by @neubreed
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman

    Did you run cron after the registration was completed? You have to run cron to get the scheduled actions to execute.

  • πŸ‡¦πŸ‡ΊAustralia neubreed

    Hi there John. Yes I ran the cron and nothing happened.

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

    I'm going to need more than this. Questions:
    * Your install sends emails otherwise - like the password reset?
    * You ran cron within one hour of the completion date/time?
    * There is a valid email association with the registration?
    * Anything in the logs?

  • πŸ‡¦πŸ‡ΉAustria selecta

    How can i configure drupal to run cron right after a registration? My current setting is 3 hours and the fastest would be 1 hour.

    But in general on the subject: It should be even faster than 1min. I don't understand why there can't be an immediate confirmation email.

    thx

  • πŸ‡¦πŸ‡ΊAustralia neubreed

    Hi John. I think the problem was with my mail configuration. There was nothing in the logs to indicate that it failed to send. Only when the email was successfully sent.

    I agree with selecta in that it would be great to have the scheduled action be triggered after a user registers. The hosting platform I use only runs the cron once an hour which I can't change unfortunately. An instant email confirmation is something that would be useful / common.

  • πŸ‡¦πŸ‡ΊAustralia neubreed

    Some further information ..

    I've set the the registration schedule to 1 minute after Registration completed

    Person registers at 05/26/2023 - 13:23

    Multiple manual cron runs:

    05/26/2023 - 13:30 Cron run completed.
    05/26/2023 - 13:30
    05/26/2023 - 13:30
    05/26/2023 - 13:31
    05/26/2023 - 13:31
    05/26/2023 - 13:32
    05/26/2023 - 13:32
    05/26/2023 - 13:33
    05/26/2023 - 13:34

    registration_scheduled_action 05/26/2023 - 13:37 Sent registration confirmation email to matt@… neubreed
    smtp 05/26/2023 - 13:37 Sending mail to: matt@liquidcommunications.com.au (…

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

    Thanks for the additional info. Scheduled actions cannot be scheduled with greater frequency than Cron runs. The interface lets you do it since it doesn't know how often Cron will run, but the reality is if Cron runs every hour, then that is the highest frequency you can get on your actions. In a shared hosting environment, a confirmation message that comes an hour later isn't what you want, I get that. The D7 module had none of this functionality so this is all add-on for D10. You are right that an immediate confirmation would be preferred. I'm going to change this to a Feature Request and see what I can do on that.

  • Assigned to john.oltman
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • Issue was unassigned.
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡ΊπŸ‡ΈUnited States john.oltman
  • πŸ‡¦πŸ‡ΊAustralia neubreed

    Hi John,

    Thanks for working on this so quickly . I've had a play with the new submodule and my registration default state is set to "Complete" and I don't think the EventSubscriber onUpdate is executed when someone registers. If I login to the admin and edit the registration the onUpdate event subscriber is executed

    if (($from_state !== $to_state) && $registration->isComplete()) {

    By this point my from_state and to_state are both complete. So the email doesn't get sent

    It would be good if the email gets sent on insert without admin intervention

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

    @neubreed - I realized the same thing soon after my initial commit - and pushed up some fixes after that. If you grab the latest Dev branch, it will handle your use case now (on insert) without admin intervention.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024