setSubject($subject); $mail->setBodyText($message); $mail->setFrom(isset($from) ? $from : Application_Model_Preference::GetSystemEmail()); foreach ((array) $tos as $to) { $mail->addTo($to); } $mail->send(); } }