You are here

public function HtmlMailMime::mimeTxtHeaders in HTML Mail 8.3

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

Get the text version of the headers, which can be used in the mail.

Parameters

array $extra_headers: (optional) An associative array of extra headers to add. The format is array('Header-Name' => 'Header-Value'). Don't set the Content-Type for multipart messages here!

bool $overwrite: (optional) TRUE if $extra_headers should overwrite existing data. Defaults to FALSE.

bool $skip_content: (optional) TRUE if the following headers should not be returned:

  • Content-Type:
  • Content-Disposition:
  • Content-Transfer-Encoding:

Defaults to FALSE.

Return value

string The headers as a string.

File

src/Utility/HtmlMailMime.php, line 700

Class

HtmlMailMime
Class HtmlMailMime.

Namespace

Drupal\htmlmail\Utility

Code

public function mimeTxtHeaders(array $extra_headers = NULL, $overwrite = FALSE, $skip_content = FALSE) {
  return parent::txtHeaders($extra_headers, $overwrite, $skip_content);
}