Email From and Subject with quotes - with solution
Permalink Browser Info Environment
Hi,
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! :)
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 |