public function body($mimeType = 'html')
    {
        $body = [];

        foreach ($this->body as $part) {
            if ($part->mime_type === $mimeType) {
                $body[] = $part->body;
            }
        }

        return implode(static::partSeparator($mimeType), $body);
    }
public function body($mimeType = 'html')
    {
        $body = [];

        foreach ($this->body as $part) {
            if ($part->mime_type === $mimeType) {
                $body[] = $part->body;
            }
        }

        return implode(static::partSeparator($mimeType), $body);
    }
public function body ( $ mimeType = 'html' ) { $ body = [ ] ; foreach ( $ this -> body as $ part ) { if ( $ part -> mime_type === $ mimeType ) { $ body [ ] = $ part -> body ; } } return implode ( static :: partSeparator ( $ mimeType ) , $ body ) ; }
Render the email body as the given mime-type

@param  string $mimeType
@return string
Render the email body as the given mime - type