Skip to content
Snippets Groups Projects
Commit 2e67ad7d authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix missing from name if mails are sent via the queue

parent 29a9b743
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class SendMailCommandController extends CommandController {
}
$mailMessage = $this->objectManager->get(MailMessage::class);
$mailMessage->setFrom($fromAddress);
$mailMessage->setFrom($fromAddress, $mailToSend->getFromName());
$mailMessage->setTo($toAddress);
$mailMessage->setSubject($mailSubject);
if (count($ccAddresses)) {
......
......@@ -181,7 +181,6 @@ class MailTemplateService {
}
}
$this->mailMessage->setFrom($this->fromAddress);
if (count($this->bccAddresses) > 0) {
$this->mailMessage->setBcc($this->bccAddresses);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment