lib/mail/Mail.php
public function addContent($type, $value = null)
    {
        if ($type instanceof Content) {
            $content = $type;
        } else {
            $content = new Content($type, $value);
        }
        $this->contents[] = $content;
    }
public function addContent($type, $value = null)
    {
        if ($type instanceof Content) {
            $content = $type;
        } else {
            $content = new Content($type, $value);
        }
        $this->contents[] = $content;
    }
public function addContent ( $ type , $ value = null ) { if ( $ type instanceof Content ) { $ content = $ type ; } else { $ content = new Content ( $ type , $ value ) ; } $ this -> contents [ ] = $ content ; }
Add content to a Mail object

For a list of pre-configured mime types, please see
MimeType.php

@param string|Content $type Mime type or Content object
@param string|null $value Contents (e.g. text or html)
Add content to a Mail object