1

I'm using the Reservations module to control certain resources. I'd like to send an email to the user who reserved the resource when it is confirmed. I also installed the Reservations email module to handle that. I could not find a token to use to refer to the user in the email body.

Currently, when a user requests a resource, an admin receives an email. When the admin confirms the resource I'd like to send the user an email confirmation.

Any suggestions about how this can be done with the existing module?

1 Answer 1

1

The Reservations: Email module is what allows you to send eMails. Some more details about it (from its project page):

This module extends Reservations to send emails at different stages in the reservation process. Token based templates are included so the emails can be customized with any information from the Reservation node or User objects. Also included is a pseudo-token for a confirmation link that allows users to confirm reservations without the need to grant them the permission to confirm reservations.

However, looking at the module source, using tokens in the eMail body requires that the token module is enabled. So if you haven't enabled that module yet, it may explain why you "could not find a token to use to refer to the user in the email body" (as in your question).

Update:

About your extra comment like "... I had to add a new field to the reservation type to save the name of the user requesting the resource. I later used that field in the email.": that seems like a variation of what's written in the issue about "Sending emails to anonymous users". That issue contains a patch that you may want to look at also.

3
  • I had already installed this module.
    – rrirower
    Jul 28, 2016 at 19:03
  • @rrirower : do you have the token module enabled? Jul 29, 2016 at 10:15
  • I have that module enabled. I had to add a new field to the reservation type to save the the name of the user requesting the resource. I later used that field in the email.
    – rrirower
    Jul 29, 2016 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.