{% block sender %} {% if event.options is defined and event.options.contact_mail is defined %} {{ event.options.contact_mail }} {% elseif collected_fields["input_mail"].value %} {{ collected_fields["input_mail"].value }} {% endif %} {% endblock %} {% block recipient %} {% if event.options is defined and event.options.contact_mail is defined %} {{ event.options.contact_mail }} {% endif %} {% endblock %} {% block email %} {% set content_type = content.contentType %} {% for field_name, field_value in collected_fields %} {% if field_name == "input_datenschutz" or content_type.getFieldDefinitions.get(field_name).fieldTypeIdentifier == 'enhancedezbinaryfile' %} {# ignore at the moment as not needed or attached#} {% elseif content.fields[field_name] is defined and content.fields[field_name] is not empty and field_value is not empty%}