From 8a359a025f2d4354918c9a5bf44695e52c9018f8 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 30 Nov 2017 13:02:01 +0100 Subject: Hopefully fixed e-mail sending. --- app/Resources/views/emails/registration.html.twig | 6 ++++++ app/Resources/views/emails/registration.php | 6 ------ src/AppBundle/Controller/EmailController.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 app/Resources/views/emails/registration.html.twig delete mode 100644 app/Resources/views/emails/registration.php diff --git a/app/Resources/views/emails/registration.html.twig b/app/Resources/views/emails/registration.html.twig new file mode 100644 index 0000000..c2ac995 --- /dev/null +++ b/app/Resources/views/emails/registration.html.twig @@ -0,0 +1,6 @@ +{# app/Resources/views/Emails/registration.html.twig #} +

You did it! You registered!

+ +Hi {{ name }}! You're successfully registered. + +Thanks! \ No newline at end of file diff --git a/app/Resources/views/emails/registration.php b/app/Resources/views/emails/registration.php deleted file mode 100644 index c2ac995..0000000 --- a/app/Resources/views/emails/registration.php +++ /dev/null @@ -1,6 +0,0 @@ -{# app/Resources/views/Emails/registration.html.twig #} -

You did it! You registered!

- -Hi {{ name }}! You're successfully registered. - -Thanks! \ No newline at end of file diff --git a/src/AppBundle/Controller/EmailController.php b/src/AppBundle/Controller/EmailController.php index 86094b9..7b6e864 100644 --- a/src/AppBundle/Controller/EmailController.php +++ b/src/AppBundle/Controller/EmailController.php @@ -1,7 +1,7 @@ $name) // or, you can also fetch the mailer service this way $this->get('mailer')->send($message); } -} \ No newline at end of file +} -- cgit v1.2.3