From 8121e8a456951e715d368c7ae2a74e658e8bfd58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 07:01:44 +0100 Subject: [PATCH] Add register mail template --- Resources/views/mail/register.html.twig | 14 ++++++++++++++ Resources/views/mail/register.text.twig | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Resources/views/mail/register.html.twig create mode 100644 Resources/views/mail/register.text.twig diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig new file mode 100644 index 0000000..390dde4 --- /dev/null +++ b/Resources/views/mail/register.html.twig @@ -0,0 +1,14 @@ +{% extends '@RapsysBlog/mail/_base.html.twig' %} +{% block content %} + + + +

{{ 'Welcome to %head.site%'|trans({'%head.site%': head.site}) }}

+

{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}

+

{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}

+

{% trans %}To create your account you must follow this link:{% endtrans %}

+

{{ confirm_url }}

+ + + +{% endblock %} diff --git a/Resources/views/mail/register.text.twig b/Resources/views/mail/register.text.twig new file mode 100644 index 0000000..7cc66e1 --- /dev/null +++ b/Resources/views/mail/register.text.twig @@ -0,0 +1,12 @@ +{{ subject }} +{% for i in range(1, subject|length) %}={% endfor %} + + +*{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}* + +{% trans %}To create your account you must follow this link:{% endtrans %} +{{ confirm_url }} + +-- + +{{ copy.long }} - {{ copy.short }} -- 2.41.1