fix email reply to issue (#326)

* fix email reply to issue

* fix: email  test  issue

* fix: phpunit  file

* style: fix lint
This commit is contained in:
Favour Olayinka
2024-02-27 15:20:50 +01:00
committed by GitHub
parent 7c90ed58bd
commit 8a067012e5
2 changed files with 32 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ class SubmissionConfirmationMail extends OpenFormMail implements ShouldQueue
{
$replyTo = Arr::get((array) $this->event->form->notification_settings, 'confirmation_reply_to', null);
return $replyTo ?? $default;
if ($replyTo && filter_var($replyTo, FILTER_VALIDATE_EMAIL)) {
return $replyTo;
}
return $default;
}
}