lib/mail/Mail.php
public function addContents($contents)
    {
        if (current($contents) instanceof Content) {
            foreach ($contents as $content) {
                $this->addContent($content);
            }
        } else {
            foreach ($contents as $key => $value) {
                $this->addContent($key, $value);
            }
        }
    }
public function addContents($contents)
    {
        if (current($contents) instanceof Content) {
            foreach ($contents as $content) {
                $this->addContent($content);
            }
        } else {
            foreach ($contents as $key => $value) {
                $this->addContent($key, $value);
            }
        }
    }
public function addContents ( $ contents ) { if ( current ( $ contents ) instanceof Content ) { foreach ( $ contents as $ content ) { $ this -> addContent ( $ content ) ; } } else { foreach ( $ contents as $ key => $ value ) { $ this -> addContent ( $ key , $ value ) ; } } }
Adds multiple Content objects to a Mail object

@param array|Content[] $contents Array of Content objects
or key value pairs
Adds multiple Content objects to a Mail object