throw new SalesChannelNotFoundException($salesChannelId);
} $templateData['salesChannel'
] =
$salesChannel;
} elseif ($this->
templateDataContainsSalesChannel($templateData)) { $salesChannel =
$templateData['salesChannel'
];
} $senderEmail =
$data['senderMail'
] ??
$this->
getSender($data,
$salesChannelId);
if ($senderEmail === null
) { $event =
new MailErrorEvent( $context,
Level::Error,
null,
'senderMail not configured for salesChannel: ' .
$salesChannelId . '. Please check system_config \'core.basicInformation.email\'',
null,
$templateData );
$this->eventDispatcher->
dispatch($event);
$this->logger->
error( 'senderMail not configured for salesChannel: ' .
$salesChannelId . '. Please check system_config \'core.basicInformation.email\'',