src/Email/SwiftEmail.php
public function getMessages(): array
    {
        $templates = [
            new Message($this->message->getBody(), $this->message->getContentType()),
        ];

        // TODO: Loop through parts

        return $templates;
    }
public function getMessages(): array
    {
        $templates = [
            new Message($this->message->getBody(), $this->message->getContentType()),
        ];

        // TODO: Loop through parts

        return $templates;
    }
public function getMessages ( ) : array { $ templates = [ new Message ( $ this -> message -> getBody ( ) , $ this -> message -> getContentType ( ) ) , ] ; // TODO: Loop through parts return $ templates ; }
Get all message body parts from the email.

@return Message[]
Get all message body parts from the email .