Exemplo n.º 1
0
 public function send()
 {
     $subject = $this->getSubject();
     $html = $this->getHtml();
     $text = $this->getText();
     Log::Debug("Sending email `" . $subject . "` to recipients: " . $this->getRecipientList(), "EMAIL");
     Log::BulkData("Email content", "EMAIL", $this->getMailHeadersAsString() . "\r\n\r\n" . ($html != "") ? $html : $text);
     $emailProvider = EmailProvider::getDefaultEmailProvider();
     $emailProvider->sendEmail($this);
 }