diff --git a/src/ContactFormExtensions.php b/src/ContactFormExtensions.php index 87d7062..67d5a19 100644 --- a/src/ContactFormExtensions.php +++ b/src/ContactFormExtensions.php @@ -154,7 +154,7 @@ public function init() // Create the confirmation email $message = new Message(); $message->setTo($e->submission->fromEmail); - $message->setFrom($e->message->getFrom()); + $message->setFrom($e->message->getTo()); $message->setHtmlBody($html); $message->setSubject($this->settings->getConfirmationSubject()); diff --git a/src/services/ContactFormExtensionsService.php b/src/services/ContactFormExtensionsService.php index 2e9b6d2..496a0aa 100644 --- a/src/services/ContactFormExtensionsService.php +++ b/src/services/ContactFormExtensionsService.php @@ -92,6 +92,7 @@ public function getRecaptcha() /** * @param array $things + * * @return array */ public function utf8AllTheThings(array $things): array @@ -105,6 +106,7 @@ public function utf8AllTheThings(array $things): array /** * @param array|string $value + * * @return array|string */ public function utf8Value($value)