Email From and Subject with quotes - with solution

Permalink Browser Info Environment

When adding Mailings, if you input single quotes in the subject and/or the from name, in the email the From line will be displayed like "=?UTF-8?Q?......" and the subject will include the quote displayed as '.

In order to fix this, I modified src/Formidable/Mailings.php, in the send() method, the setSubject, from and replyto should by like so:

$mh->setSubject(html_entity_decode($this->prepareSubject(), ENT_QUOTES, 'UTF-8'));
$mh->from($from_email, html_entity_decode($from_name, ENT_QUOTES, 'UTF-8'));
$mh->replyto($from_email, html_entity_decode($from_name, ENT_QUOTES, 'UTF-8'));

Thanks! :)

Type: Ticket
Status: New
View Replies:

concrete5 Environment Information

Concrete5 8.2.1

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.