function sendEmail($send = true) { $emailer = new Emailer(); $message = $this->getString(); $emailer->setMessage($message); $emailer->setSubject($this->subject); $emailer->setSender("*****@*****.**"); $emailer->addRecipients($this->recipient); $emailer->addRecipients($this->bccrecipients, 1, "bcc"); $emailer->addRecipients($this->ccrecipients, 1, "cc"); if ($send) { $emailer->send(); } else { $emailString = $emailer->getString(); print $emailString; } }