Skip to content

Commit

Permalink
MAGETWO-59173: [Backport] [Github] Disable email communication set to…
Browse files Browse the repository at this point in the history
… yes: email did get sent. #5988 - 2.1
  • Loading branch information
svitja committed Jun 2, 2017
1 parent 4e5dcea commit 96e8eb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © 2013-2017 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Email\Model\Mail;
namespace Magento\Email\Model\Plugin;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Exception\MailException;
Expand All @@ -18,6 +18,8 @@ class TransportInterfacePlugin
const XML_PATH_SYSTEM_SMTP_DISABLE = 'system/smtp/disable';

/**
* Application config.
*
* @var ScopeConfigInterface
*/
private $scopeConfig;
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Email/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
</type>
<type name="Magento\Framework\Mail\TransportInterface">
<plugin name="WindowsSmtpConfig" type="Magento\Email\Model\Plugin\WindowsSmtpConfig" />
<plugin name="disableSending" type="Magento\Email\Model\Mail\TransportInterfacePlugin" />
<plugin name="disableSending" type="Magento\Email\Model\Plugin\TransportInterfacePlugin" />
</type>
</config>

0 comments on commit 96e8eb7

Please sign in to comment.