Skip to content

Commit

Permalink
SpoolTransport takes into account mailer_spool_type
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhartless authored and anton-vlasenko committed Apr 17, 2020
1 parent 71258c6 commit 140f85d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/bundles/EmailBundle/Helper/MailHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,9 @@ public function __construct(MauticFactory $factory, \Swift_Mailer $mailer, $from
$this->returnPath = $factory->getParameter('mailer_return_path');

// Check if batching is supported by the transport
if ('memory' == $this->factory->getParameter('mailer_spool_type')
&& (
$this->transport instanceof TokenTransportInterface
|| ($this->transport instanceof SpoolTransport && $this->transport->supportsTokenization())
)
if (
('memory' == $this->factory->getParameter('mailer_spool_type') && $this->transport instanceof TokenTransportInterface)
|| ($this->transport instanceof SpoolTransport && $this->transport->supportsTokenization())
) {
$this->tokenizationEnabled = true;
}
Expand Down

0 comments on commit 140f85d

Please sign in to comment.