lib/mail/Attachment.php
public function setContent($content)
    {
        if (!is_string($content)) {
            throw new TypeException('$content must be of type string.');
        }
        if (!$this->isBase64($content)) {
            $this->content = base64_encode($content);
        } else {
            $this->content = $content;
        }
    }
public function setContent($content)
    {
        if (!is_string($content)) {
            throw new TypeException('$content must be of type string.');
        }
        if (!$this->isBase64($content)) {
            $this->content = base64_encode($content);
        } else {
            $this->content = $content;
        }
    }
public function setContent ( $ content ) { if ( ! is_string ( $ content ) ) { throw new TypeException ( '$content must be of type string.' ) ; } if ( ! $ this -> isBase64 ( $ content ) ) { $ this -> content = base64_encode ( $ content ) ; } else { $ this -> content = $ content ; } }
Add the content to a Attachment object

@param string $content Base64 encoded content

@throws TypeException
Add the content to a Attachment object