{% extends request.ajax ? 'layout_blank.html.twig' : 'layout_default.html.twig' %} {% block meta_title %}{{ 'Mail Gateway Settings'|trans }}{% endblock %} {% set active_menu = 'system' %} {% set result = admin.mailgateway_settings_get({}) %} {% set params = result.settings %} {% block content %} {% if result.notifications is defined %}
{% endif %} {% if result.dependencies is defined and not result.dependencies.installed %}{{ 'Install the required mail library before testing connections or enabling imports.'|trans }}
{% else %}{{ 'Automatic installation is unavailable on this server. Run composer install from the Mailgateway directory using SSH.'|trans }}
{% endif %}{{ 'Maintenance actions preserve saved mailbox settings and existing ticket data.'|trans }}
{% if result.notifications is defined %}{{ 'Ticket acknowledgement and enabled staff notification subjects are configured for email replies.'|trans }}
{% else %}{{ 'Setup enables the ticket acknowledgement and adds ticket numbers to its subject and enabled staff notification subjects. Existing wording is kept.'|trans }}
{{ 'Mail Gateway dependencies are installed.'|trans }}
{% else %}{{ 'Mail Gateway dependencies are not installed.'|trans }}
{% endif %}{{ 'Run composer install again using the module lock file, even when dependencies are already installed.'|trans }}
{% if result.dependencies is defined and result.dependencies.available %} {% else %}{{ 'Web installation is unavailable. Run composer install from the Mailgateway directory using SSH.'|trans }}
{% endif %}{{ 'Runs the same setup as php tools/setup.php. Creates missing module tables and adds the default mismatch email template if absent. Existing records and templates are kept. Composer runs separately.'|trans }}