Template for Inquiry Creation or Change Notification

The OMC uses this template for generating e-mails after an inquiry was created or extended. A simple example for such a template:

inquiry_notification_email_subject:
[Anfrage {{inquiry.id}}] {{inquiry.summary}}
inquiry_notification_email_body:

{% case inquiry.new_diary.created_by %}
  {% when 'max.muster' %}{% assign created_by_full_name = 'Max Muster' %}
  {% when 'sabine.muster' %}{% assign created_by_full_name = 'Sabine Muster' %}
  {% else %}{% assign created_by_full_name = {{inquiry.new_diary.created_by}} %}
{% endcase %}
{% if inquiry.contact %}{{inquiry.contact.salutation}},{% endif %}
{% if inquiry.is_new_inquiry? %}
thank you very much for your inquiry. We will work on it as soon
as possible. If you have any questions or wish to send us
additional data, please provide your ticket ID for faster
processing.

Ticket ID: {{inquiry.id}}

We will contact you as soon as further information is available.
{% else %}
Your inquiry was extended.

Ticket ID: {{inquiry.id}}
{% endif %}

Kind regards,
Customer Support

------------------------------------------------------------------------
From: {{created_by_full_name}} 
Date: {{inquiry.new_diary.created_at | date:'%Y-%m-%d %H:%M'}}

Summary: {{inquiry.new_diary.summary}}

{{inquiry.new_diary.notes}}
------------------------------------------------------------------------

-- 
The Company Ltd | Customer Support
Sample St. 99, 4391 Sampletown
Phone: 099 99 99 98, Fax: 099 99 99 99
http://www.example.org

In the template, you can use inquiry to access the fields of the inquiry concerned. contact, account, and new_diary refer to the contact person, the account to which she belongs, and the diary entry created because of this inquiry, respectively.