File tree Expand file tree Collapse file tree
test/Unit/Contact/Service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ return [
4747 'contact' => [
4848 'notification_receivers' => [],
4949 'message_receivers' => [
50+ 'name' => 'Dotkernel Team',
5051 'to' => [
5152 'tech@example.com',
5253 ],
Original file line number Diff line number Diff line change @@ -63,11 +63,11 @@ public function sendContactMail(Message $message): bool
6363 );
6464 $ this ->mailService ->getMessage ()->addTo (
6565 $ this ->config ['contact ' ]['message_receivers ' ]['to ' ],
66- ' Dotkernel Team '
66+ $ this -> config [ ' contact ' ][ ' message_receivers ' ][ ' name ' ]
6767 );
6868 $ this ->mailService ->getMessage ()->addCC (
6969 $ this ->config ['contact ' ]['message_receivers ' ]['cc ' ],
70- ' Dotkernel Team '
70+ $ this -> config [ ' contact ' ][ ' message_receivers ' ][ ' name ' ]
7171 );
7272 $ this ->mailService ->getMessage ()->setReplyTo ($ message ->getEmail (), $ message ->getName ());
7373
Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ public function testProcessMessage(): void
5555 [
5656 'contact ' => [
5757 'message_receivers ' => [
58- 'to ' => 'test@dotkernel.com ' ,
59- 'cc ' => 'bcc@dotkernel.com ' ,
58+ 'to ' => 'test@dotkernel.com ' ,
59+ 'cc ' => 'bcc@dotkernel.com ' ,
60+ 'name ' => 'Dotkernel Team ' ,
6061 ],
6162 ],
6263 'dot_mail ' => [
You can’t perform that action at this time.
0 commit comments