do not spool emails
This commit is contained in:
parent
e6f78e9541
commit
847e3a4922
@ -1,7 +1,7 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block bigMain %}
|
||||
<h1>tadam test de mail</h1>
|
||||
<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.
|
||||
{% endblock %}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user