1.8.6. 태그 'email' (up)

email 태그를 사용하면 발신 이메일의 헤더를 사용자 지정할 수 있으며 이메일 템플릿 내에서만 사용할 수 있습니다.

작업을 단순화하는 cc 또는 subject (아래 표 참조)와 같은 몇 가지 편의 하위 태그는 있지만, 헤더 하위 태그를 사용하여 메시지에 임의의 SMTP 헤더를 설정할 수도 있습니다.

Subtag

설명

예제

제목

동적 주제

{% subject = 'Greeting from Example company!'" %}

cc

이산화탄소 복사

{% cc = 'boss@example.com' %}

bcc

장님의 탄소 복사

{% bcc = 'all@example.com' %}

from

실제 발신자

{% from = 'system@example.com' %}

reply-to

 

{% reply-to = 'support@example.com' %}

header

사용자 정의 SMTP 헤더

{% header 'X-SMTP-Group' = 'Important' %}

do_not_send

이메일 삭제

{% do_not_send %}

예: 조건부 맹일 탄소 사본

{% email %}
  {% if plan.system_name == 'enterprise' %}
     {% bcc 'marketing@world-domination.org' %}
  {% endif%}
{% endemail %}

예: 이메일 비활성화

{% email %}
  {% do_not_send %}
{% endemail %}

예: 이메일 서명 필터

{% email %}
  {% if plan.system == 'enterprise' %}
    {% subject = 'Greetings from Example company!' %}
    {% reply-to = 'support@example.com' %}
  {% else %}
    {% do_not_send %}
  {% endif %}
{% endemail %}