classes/Emails/Email/Content.php
public function add(string $content, string $mimeType = null, $encoding = null): void
    {
        $contentPart = $this->make();
        $contentPart->content = $content;
        if ($mimeType !== null) {
            $contentPart->mimeType = $mimeType;
        }
        if ($encoding !== null) {
            $contentPart->encoding = $encoding;
        }
        $this->set($contentPart);
    }
public function add(string $content, string $mimeType = null, $encoding = null): void
    {
        $contentPart = $this->make();
        $contentPart->content = $content;
        if ($mimeType !== null) {
            $contentPart->mimeType = $mimeType;
        }
        if ($encoding !== null) {
            $contentPart->encoding = $encoding;
        }
        $this->set($contentPart);
    }
public function add ( string $ content , string $ mimeType = null , $ encoding = null ) : void { $ contentPart = $ this -> make ( ) ; $ contentPart -> content = $ content ; if ( $ mimeType !== null ) { $ contentPart -> mimeType = $ mimeType ; } if ( $ encoding !== null ) { $ contentPart -> encoding = $ encoding ; } $ this -> set ( $ contentPart ) ; }
Add a content part.

@param string $content The value of content part.
@param string|null $mimeType The mime type of the content part.
@param string|null $encoding The encoding of the content part.
Add a content part .