You are here

public function HTMLMailMime::mimeTxtHeaders in HTML Mail 8

Same name and namespace in other branches
  1. 8.3 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 690
Provides the MailMIME class for creating MIME-formatted email messages.

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);
}