Swiftmailer still sends email despite disable_delivery or delivery_address

I have setup a staging environment (uat). The intent is to redirect all emails to one single email address or worst case disable email functionality. My issue is that despite the following setup, the application is still sending email as it should in prod environment.

# config_uat.yml imports:     - { resource: config.yml }  monolog:     handlers:         main:             type:         fingers_crossed             action_level: error             handler:      nested         nested:             type:  stream             path:  "%kernel.logs_dir%/%kernel.environment%.log"             level: debug  swiftmailer:     transport:      smtp     host:           127.0.0.1     port:           25     encryption:     null     sender_address: [email protected]     logging:        "%kernel.debug%"     delivery_address: '[email protected]'     disable_delivery: true 

And :

#config.yml imports:     - { resource: parameters.yml }     - { resource: security.yml }     - { resource: "@psmdbBundle/Resources/config/services.yml" }     - { resource: "@psmdbBundle/Resources/config/version.yml" }  # Swiftmailer Configuration swiftmailer:     transport:      smtp     host:           127.0.0.1     port:           25     encryption:     null     sender_address: [email protected]     logging:        "%kernel.debug%" 

Replay

Category: symfony2 Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.207 (s). 12 q(s)