meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

combine subject with another field in mail #2031

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi, Congratulations on the system, in the first place.

I would like to combine the "subject" field with another "custom-field" when sending an email.

For example:

First name: Paul Thermostat (Custom-field): heating / not necessary (in this case: heating)

Result:

Subject: Paul - heating

I use smpt

Thank you very much in advance Jose

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1315

jberanek commented 7 years ago

Attachment Explanatory

Original comment by: *anonymous

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/357ef69d/db91/attachment/email%202.JPG

jberanek commented 7 years ago

Assuming you are using MRBS 1.6.1, then as you are using iCalendar notifications you need to change lines 899 and 1003 of functions_mail.inc from

$subject = $data['name'];

to

$subject = $data['name'] . " - " . $data['termostato'];  // or whatever your field is called

Original comment by: campbell-m

jberanek commented 7 years ago

Thank you very much. Solved!

Original comment by: *anonymous