Open jberanek opened 6 years ago
No need to edit any code. Just set the following in your config file:
$mail_settings['room_admin_on_bookings'] = true; // the room administrator
Original comment by: campbell-m
Thank you! Is there any way to customise the email subject and text as it currently reads as follows:
Subject: Entry approved for Your Company MRBS An entry has been approved by the administrators; here are the details:
view_entry.php?id=211
Brief description: test
Original comment by: *anonymous
Also, I just checked and no email is sent when a booking is rejected.
Original comment by: *anonymous
You can alter the text by using the $vocab_override config settings. See systemdefaults.inc.php for more details. The tokens you need to change are "mail_subject_approved" and "mail_body_approved".
However you may not need to do that, if all you want to change is the "Your Company MRBS" bit. To change "Your Company" you should set $mrbs_company
in the config file.
Note also that you need to set $url_base to turn that line "view_entry.php?id=211" into a link.
Also, setting
$mail_settings['details'] = true;
will give you more details about the booking.
There are a lot of configuration options available in MRBS. It's worth reading through systemdefaults.inc.php and areadefaults.inc.php to see what can be changed.
Original comment by: campbell-m
Have you got
$mail_settings['on_delete'] = true;
set in your config file?
Original comment by: campbell-m
Thank you that's working now. The only issue is it's sending the approval and rejection emails to the admin and not to the user who booked. I need the user be able to see when/if their booking has been approved.
Original comment by: *anonymous
I read through and did a find on both systemdefaults and language, but I couldn't find any tokens for "mail_subject_approved" or "mail_body_approved" in either file.
Changing the view entry to a link worked, thank you.
Original comment by: *anonymous
Have you got
$mail_settings['booker'] = true;
set in your config file?
Original comment by: campbell-m
No, the tokens are in the lang/lang.en file. However, don't edit the lang files, but instead use the $vocab_override feature in the config file.
Original comment by: campbell-m
Yes, but I stupidly forgot to overwrite when uploading the new config...my bad
Original comment by: *anonymous
Done, thank you!
Original comment by: *anonymous
One last thing. As the admin I need to know when someone has requested to book a room that needs approval, but I don't need an email every time I book a room under my own account, or when another admin books a room. Is there any way to limit the emails that the admin receives to just booking requests?
Original comment by: *anonymous
No, sorry, not without modifying the MRBS code.
Original comment by: campbell-m
Thanks for the response.
Original comment by: *anonymous
Is there any way to send an email to the room admin every time a user makes a booking request?
I would also like to then send an email when the booking has been approved.
I took a look in the functions_mail.inc file and I see some lines relating to approval, but I'm unsure of exactly what to edit, where to place the edits.
Reported by: *anonymous
Original Ticket: mrbs/support-requests/1551