public function setHtmlBody($htmlBody) { if ($htmlBody == null || $htmlBody == '') { $htmlBody = ' '; } $this->message['html'] = $htmlBody; return $this->message['html']; }
/** * * @return \Mailgun\Messages\MessageBuilder */ protected function getMessageBuilder() { $htmlBody = $this->getVariable(static::CAPTURETO_HTML, false); $textBody = $this->getVariable(static::CAPTURETO_TEXT, false); if ($htmlBody !== false) { $this->mb->setHtmlBody($htmlBody); } if ($textBody !== false) { $this->mb->setTextBody($textBody); } return $this->mb; }