SymfonyMailer::SKIP_HEADERS

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php \Drupal\Core\Mail\Plugin\Mail\SymfonyMailer::SKIP_HEADERS

List of headers to skip copying from the message array.

Symfony mailer sets Content-Type and Content-Transfer-Encoding according to the actual body content. Note that format=flowed is not supported by Symfony.

See also

\Symfony\Component\Mime\Part\TextPart

File

core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php, line 77

Class

SymfonyMailer
Defines an experimental mail backend, based on the Symfony mailer component.

Namespace

Drupal\Core\Mail\Plugin\Mail

Code

protected const SKIP_HEADERS = [
    'content-type',
    'content-transfer-encoding',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.