Skip to content

Commit

Permalink
fixes mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Oct 13, 2023
1 parent 517f86d commit caed306
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/core/Manager/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ public function send($subject, $body, array $users, $from = null, array $extra =

private function getMailerFrom(): ?string
{
if ($this->config->getParameter('internet.domain_name') && '' !== trim($this->config->getParameter('internet.domain_name'))) {
$from = 'noreply@'.$this->config->getParameter('internet.domain_name');
if (filter_var($from, FILTER_VALIDATE_EMAIL)) {
return $from;
}
}

$from = $this->config->getParameter('mailer.from');
if (filter_var($from, FILTER_VALIDATE_EMAIL)) {
return $from;
Expand Down

0 comments on commit caed306

Please sign in to comment.