Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294952

contact_mail() casts rendered markup to string

$
0
0

Problem/Motivation

<?php
$message['body'][] = (string) \Drupal::service('renderer')->renderPlain($build);
?>

That breaks sending HTML mails for example with swift mailer, which tries to be correct and escapes non-safe HTML.

Proposed resolution

Remove the string casts.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 294952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>