Skip to content

Commit

Permalink
fix: rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubnogueira committed Aug 21, 2023
1 parent 5b29bce commit ebf9124
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/bundles/EmailBundle/Helper/MailHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ class MailHelper
* @param MauticFactory $factory
* @param $mailer
* @param null $from
* @param null $bcc
*/
private $embedImagesReplaces = [];

public function __construct(MauticFactory $factory, \Swift_Mailer $mailer, $from = null, $bcc = null)

{
Expand All @@ -265,9 +267,9 @@ public function __construct(MauticFactory $factory, \Swift_Mailer $mailer, $from
$this->logError($e);
}

$systemBccEmail = $factory->getParameter('mailer_default_bcc');
$systemFromEmail = $factory->getParameter('mailer_from_email');
$systemReplyToEmail = $factory->getParameter('mailer_reply_to_email');
$systemBccEmail = $factory->getParameter('mailer_default_bcc');
$systemFromName = $this->cleanName(
$factory->getParameter('mailer_from_name')
);
Expand Down Expand Up @@ -697,6 +699,7 @@ public function reset($cleanSlate = true)
$this->appendTrackingPixel = false;
$this->queueEnabled = false;
$this->from = $this->systemFrom;
$this->replyTo = $this->systemReplyTo;
$this->headers = [];
[];
$this->source = [];
Expand Down Expand Up @@ -2243,11 +2246,6 @@ private function setDefaultReplyTo($systemReplyToEmail =null, $systemFromEmail =
$this->replyTo = $this->systemReplyTo;
}

private function getMessageInstance(): MauticMessage
{
return new MauticMessage();
}

private function setDefaultBcc($overrideBcc, $systemBcc)
{
$this->systemBcc = $overrideBcc ?: $systemBcc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
</div>
<div class="row">
<?php echo $view['form']->rowIfExists($fields, 'mailer_reply_to_email', $template); ?>
<?php echo $view['form']->rowIfExists($fields, 'mailer_default_bcc', $template); ?>
</div>
<div class="row">
<?php echo $view['form']->rowIfExists($fields, 'mailer_return_path', $template); ?>
Expand Down

0 comments on commit ebf9124

Please sign in to comment.