diff --git a/app/Resources/views/default/test-email.html.twig b/app/Resources/views/default/test-email.html.twig
index d93f6ad5..f9bea09e 100644
--- a/app/Resources/views/default/test-email.html.twig
+++ b/app/Resources/views/default/test-email.html.twig
@@ -1,7 +1,7 @@
{% extends 'base.html.twig' %}
{% block bigMain %}
-
tadam test de mail
+ tadam test de mail {{ name }}
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.
{% endblock %}
diff --git a/app/config/config.yml b/app/config/config.yml
index e57c9b70..38fedb8e 100755
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -68,7 +68,7 @@ swiftmailer:
host: '%mailer_host%'
username: '%mailer_user%'
password: '%mailer_password%'
- spool: { type: memory }
+# spool: { type: memory }
encryption: '%mailer_encryption%'
port: '%mailer_port%'
#fos user bundle
diff --git a/app/config/security.yml b/app/config/security.yml
index 03063140..58c6e8dd 100755
--- a/app/config/security.yml
+++ b/app/config/security.yml
@@ -19,6 +19,7 @@ security:
pattern: ^/
anonymous: ~
logout: true
+ logout_on_user_change: true
form_login:
provider: fos_userbundle
csrf_token_generator: security.csrf.token_manager
diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php
index 7d4d7647..6de036dd 100755
--- a/src/AppBundle/Controller/DefaultController.php
+++ b/src/AppBundle/Controller/DefaultController.php
@@ -81,10 +81,12 @@ class DefaultController extends Controller {
$name = "noble barbare";
$message = \Swift_Message::newInstance()
->setSubject( 'Hello Email' )
- ->setFrom( 'test-symfony-tykayn@meluzine.org' )
+ ->setFrom( 'test-symfony-tykayn@caisse.ciperbliss.com' )
->setTo( 'tykayn@gmail.com' )
->setBody( $this->renderView( 'default/test-email.html.twig',
- [ 'name' => $name ] ) );
+
+ [ 'name' => $name ] ),
+ 'text/html' );
$this->get( 'mailer' )->send( $message );
//return 'yay test de mail';