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' %} {% extends 'base.html.twig' %}
{% block bigMain %} {% block bigMain %}
<h1>tadam test de mail {{ name }}</h1> <div style="padding:2rem;">
le contenu <h1>tadam test de mail</h1>
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>
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 %} {% endblock %}

View File

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

View File

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