meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Approval e-mail not sent #1805

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hello Devs, My e-mail settings look like this:

$mail_settings['booker']      = TRUE;
$mail_settings['on_new']    = TRUE;   // when an entry is created
$mail_settings['room_admin_on_bookings'] = FALSE;  // the room administrator
$mail_settings['on_change'] = TRUE;  // when an entry is changed
$mail_settings['on_delete'] = TRUE;  // when an entry is deleted
$mail_settings['details']   = TRUE; 
$mail_settings['html']      = TRUE; // Set to true if you want HTML mail
//$mail_settings['icalendar'] = FALSE; 
$mail_settings['book_admin_on_approval'] = TRUE;
$mail_settings['from'] = 'xxx@xxxx.xx';//my e-mail
$mail_settings['recipients'] = 'xxxx@xxx.xx';//my email

I got emails about booking creation and changing, but not about approving. So my question is: how to set up the system to send e-mail to the booker and the admin about approval?

Thanx

Reported by: gramanox

Original Ticket: mrbs/support-requests/1084

jberanek commented 7 years ago

Silly question, but you have got approval enabled for the area that you are making the booking in haven't you?

Original comment by: campbell-m

jberanek commented 7 years ago

Yes, approval enabled for that area. But user can send massage to admin is disabled. Actually, what is the booking admin? Is it the same as the system admin with that e-mail address? Should the system send an e-mail to the booker on approval as well or only for the booking admin? Thx.

Original comment by: gramanox

jberanek commented 7 years ago

The booking admin is the same as the system admin. I think you need to set

$mail_settings['admin_on_bookings']      = true;

Original comment by: campbell-m

jberanek commented 7 years ago

Very good, yes, now it works well! THANK YOU!

Original comment by: gramanox