You are here

public function HtmlMailMime::saveMessage in HTML Mail 8.3

Same name and namespace in other branches
  1. 8 src/Utility/HTMLMailMime.php \Drupal\htmlmail\Utility\HTMLMailMime::saveMessage()

Appends the complete email to a file.

Parameters

string $filename: The output file location.

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

string $headers: (optional) The extra headers that should be passed to the MailMimeInterface::headers() method.

bool $overwrite: TRUE if $headers parameter should overwrite previous data.

Return value

string TRUE if successful; otherwise FALSE.

File

src/Utility/HtmlMailMime.php, line 361

Class

HtmlMailMime
Class HtmlMailMime.

Namespace

Drupal\htmlmail\Utility

Code

public function saveMessage($filename, $params = NULL, $headers = NULL, $overwrite = FALSE) {
  return self::successful(parent::saveMessage($filename, $params, $headers, $overwrite));
}