Bug #80706 [Fbk->Opn]: HTML Emails Mangled with only one recipient

From: Date: Wed, 03 Feb 2021 22:05:29 +0000
Subject: Bug #80706 [Fbk->Opn]: HTML Emails Mangled with only one recipient
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231940@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80706&edit=1 ID: 80706 Updated by: cmb@php.net Reported by: josh at dirxion dot com Summary: HTML Emails Mangled with only one recipient -Status: Feedback +Status: Open Type: Bug Package: Mail related Operating System: Windows 2016 Std PHP Version: 7.4.14 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Thanks for filing as new ticket! I'll have a closer look tomorrow. A reproduce script may not be necessary. Previous Comments: ------------------------------------------------------------------------ [2021-02-03 20:12:23] requinix@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2021-02-03 20:09:14] josh at dirxion dot com Description: ------------ I suspect bug ID 72964 may be related to this issue. With the release of PHP 7.4.14 we are experiencing an issue with our web email forms being processed. It seems to mangle the HTML formatting when there is only one email address. I have verified the problem does not exists in version 7.4.13 and that if I provide multiple addresses the mangled HTML email content problem goes away. 7.4.14 email example https://blogs.dirxion.com/tmp/examplebad.eml 7.4.13 email example https://blogs.dirxion.com/tmp/examplegood.eml Test script: --------------- 'Bcc: '. $VariableEmailGroup . "\r\n" . If we add on a 2nd email address to the same syntax, the HTML formatting of the email is preserved properly. The problem is we don't want to list out multiple email addresses. 'Bcc: ' . $VariableEmailGroup . ", \r\n\tuseremail@thisworksok.com\r\n" . I will update with more details of what the variable value is once I receive an internal response. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80706&edit=1

« previous php.bugs (#231940) next »