style on test mail

This commit is contained in:
Kayn Ty 2018-05-14 13:30:00 +02:00
parent 847e3a4922
commit 7aeaffd0b8
3 changed files with 13 additions and 7 deletions

View File

@ -1,7 +1,15 @@
{% extends 'base.html.twig' %}
{% block bigMain %}
<h1>tadam test de mail {{ name }}</h1>
le contenu
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus doloremque exercitationem provident quae quod soluta sunt velit. Architecto, assumenda deserunt expedita laudantium nemo voluptatem. Atque commodi est iste itaque mollitia. Consequatur cumque cupiditate eveniet facilis illo illum impedit itaque omnis placeat quaerat, quia quidem ratione saepe similique sunt veniam veritatis.
<div style="padding:2rem;">
<h1>tadam test de mail</h1>
<p>
le contenu Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus doloremque exercitationem
provident quae quod soluta sunt velit. Architecto, assumenda deserunt expedita laudantium nemo voluptatem.
Atque commodi est iste itaque mollitia. Consequatur cumque cupiditate eveniet facilis illo illum impedit
itaque omnis placeat quaerat, quia quidem ratione saepe similique sunt veniam veritatis.
</p>
</div>
{% endblock %}

View File

@ -52,5 +52,5 @@ fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml"
# emails
tktest_mail:
path: /test-email
path: /admin/test-email
defaults: { _controller: AppBundle:Default:email }

View File

@ -83,9 +83,7 @@ class DefaultController extends Controller {
->setSubject( 'Hello Email' )
->setFrom( 'test-symfony-tykayn@caisse.ciperbliss.com' )
->setTo( 'tykayn@gmail.com' )
->setBody( $this->renderView( 'default/test-email.html.twig',
[ 'name' => $name ] ),
->setBody( $this->renderView( 'default/test-email.html.twig' ),
'text/html' );
$this->get( 'mailer' )->send( $message );