diff --git a/Classes/Domain/Service/SendMailService.php b/Classes/Domain/Service/SendMailService.php index 29a7966..a45e613 100644 --- a/Classes/Domain/Service/SendMailService.php +++ b/Classes/Domain/Service/SendMailService.php @@ -1,6 +1,7 @@ setTo( - [ - 'anotheremail@domain.org' => 'receiverName' - ] - ); + // overwrite the receiver in the email array to have it saved correctly! + $email['receiverName'] = 'John Mega'; + $email['receiverEmail'] = 'john@mega.com'; + + $message->setTo([$email['receiverEmail'] => $email['receiverName']]); } }