src/Mailer.php
private function getMessage(string $subject, string $message): \Swift_Message
    {
        $messageObject = new \Swift_Message($subject, $message);
        $messageObject
            ->setFrom([$this->config('mailer.sender_email') => $this->config('mailer.sender_name')])
            ->setTo($this->config('mailer.recipients'))
        ;

        return $messageObject;
    }
private function getMessage(string $subject, string $message): \Swift_Message
    {
        $messageObject = new \Swift_Message($subject, $message);
        $messageObject
            ->setFrom([$this->config('mailer.sender_email') => $this->config('mailer.sender_name')])
            ->setTo($this->config('mailer.recipients'))
        ;

        return $messageObject;
    }
private function getMessage ( string $ subject , string $ message ) : \ Swift_Message { $ messageObject = new \ Swift_Message ( $ subject , $ message ) ; $ messageObject -> setFrom ( [ $ this -> config ( 'mailer.sender_email' ) => $ this -> config ( 'mailer.sender_name' ) ] ) -> setTo ( $ this -> config ( 'mailer.recipients' ) ) ; return $ messageObject ; }
Prepare a swift message object.
Prepare a swift message object .