Menu

#2313 1.9.2 how to change mail content (clickable link to event)?

None
open
nobody
None
1
2021-03-01
2021-02-26
Thomas S.
No

Hi

When a new event is booked, the booker and the area admin get an email like this


A new entry has been booked, here are the details:

view_entry.php?id=16361

Brief description: ...


The question is now how i can customize this email? I want to
-change the text "a new entry has been booked"
-Make the link clickable to redirect to the event (ill have to prefix with my dns name for the server, maybe there is a variable for this

Can you help me try to achieve this?

Best,
Thomas

Discussion

  • Campbell Morrison

    change the text "a new entry has been booked"

    Set in your config file

    $vocab_override['en'][['mail_body_new_entry']     = "A new entry has been booked by %s, here are the details:";  // Change as required
    

    In general you can change any text by finding the string in lang/lang.en and then using the corresponding tag (eg 'mail_body_new_entry') in $vocab_override. You can have settings for multiple languages by using the language specifier, eg

    $vocab_override['en'][['mail_body_new_entry']     = "A new entry has been booked by %s, here are the details:";  // Change as required
    $vocab_override['de'][['mail_body_new_entry']     = "A new entry has been booked by %s, here are the details:";  // Something in German
    

    Make the link clickable to redirect to the event

    // This is to fix URL problems when using a proxy in the environment.
    // If links inside MRBS or in email notifications appear broken, then specify here the URL of
    // your MRBS root directory, as seen by the users. For example:
    // $url_base =  "http://example.com/mrbs";
    
     
  • Thomas S.

    Thomas S. - 2021-03-01

    Thanks that worked :)

     
MongoDB Logo MongoDB