Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#127 Ref to #1855699 How add email rule.

open
nobody
None
5
2012-07-20
2008-03-31
dirtysnipe
No

Now that the check boxes are all working and well done John brilliant job.

Is it possible to setup email so when somone selects a checkbox it send a seperate email to another email address containing the booking information and which checkboxes have been selected.

Senario is The IT department are in charge of the laptops and projectors and setting the room when with that equipment. They need a notification email with the booking details. But I dont want them to get an email of every booking made that does not have a checkbox ticked as it does not need to go to them. I hope this all makes sence.

Paul

I have attached the zip file you posted for quick ref of what has been altered to mrbs.

Discussion

  • dirtysnipe
    dirtysnipe
    2008-03-31

    Logged In: YES
    user_id=1466780
    Originator: YES

    I have added the following so far:-

    config.inc.php

    $mrbs_itdept_email = "emailaddressinhere";

    Set to TRUE if you want to be notified when entries are booked. Default is

    FALSE

    define ("MAIL_IT_DEPT_ON_BOOKINGS", TRUE);

    Now im stuck on the edit_entry_handler.php page.

     
  • John Beranek
    John Beranek
    2008-04-07

    Logged In: YES
    user_id=71843
    Originator: NO

    I would read functions_mail.inc, and create a new function in there following the form of, say, notifyAdminOnBooking().

    This is all the support on this further modification to MRBS I intend to give.

    John.

     
  • dirtysnipe
    dirtysnipe
    2008-04-07

    Logged In: YES
    user_id=1466780
    Originator: YES

    John I dont feel forcing this post to closed was very helpful. I understand you are busy with other things and dont want to spend too much time with things like this but to close it down so that i cannot get any help from anyone else was a bit wrong. All im asking is if there is anyone else here with knowledge of mrbs and php that could help me with this slight hurdle.

     


Anonymous


Cancel   Add attachments