lib/mail/Mail.php
public function addSections($sections)
    {
        if (current($sections) instanceof Section) {
            foreach ($sections as $section) {
                $this->addSection($section);
            }
        } else {
            foreach ($sections as $key => $value) {
                $this->addSection($key, $value);
            }
        }
    }
public function addSections($sections)
    {
        if (current($sections) instanceof Section) {
            foreach ($sections as $section) {
                $this->addSection($section);
            }
        } else {
            foreach ($sections as $key => $value) {
                $this->addSection($key, $value);
            }
        }
    }
public function addSections ( $ sections ) { if ( current ( $ sections ) instanceof Section ) { foreach ( $ sections as $ section ) { $ this -> addSection ( $ section ) ; } } else { foreach ( $ sections as $ key => $ value ) { $ this -> addSection ( $ key , $ value ) ; } } }
Adds multiple sections to a Mail object

@param array|Section[] $sections Array of CustomArg objects
or key/values
Adds multiple sections to a Mail object