You are here

public function HTMLMailMime::saveMessageBody in HTML Mail 8

Same name and namespace in other branches
  1. 8.3 src/Utility/HtmlMailMime.php \Drupal\htmlmail\Utility\HtmlMailMime::saveMessageBody()

Appends the complete e-mail body to a file.

Parameters

string $filename: The output file location.

string $params: (optional) Build parameters for the MailMimeInterface::get() method.

Return value

bool TRUE if successful; otherwise FALSE.

File

src/Utility/HTMLMailMime.php, line 368
Provides the MailMIME class for creating MIME-formatted email messages.

Class

HTMLMailMime
Class HTMLMailMime.

Namespace

Drupal\htmlmail\Utility

Code

public function saveMessageBody($filename, $params = NULL) {
  return self::successful(parent::saveMessageBody($filename, $params));
}