[pkg-php-pear] Bug#1052238: php-net-smtp: fails to send MIME multipart email properly
J.L. Fernandez Jambrina
j.fdez.jambrina at gr.ssr.upm.es
Tue Sep 19 11:42:34 BST 2023
Package: php-net-smtp
Version: 1.10.1-1
Severity: important
Dear Maintainer,
I wrote an php code that send MIME multipart emails using php-mail and php-pear. It works properly on Debian 11.7, but after upgrading to Debian 12 I detected the emails aren’t recognised as MIME multipart.
To isolate the bug, I came back to the php-pear example than can be found in https://pear.php.net/manual/en/package.mail.mail-mime.example.php and it work properly on Debian 11.7 but it fails in the way described on Debian 12.1: on Debian 12.1 the emails aren't recognized as MIME multipart.
Comparing the emails generated on both versions of Debian I detected an extra space at the beginning of lines:
" From: you at yourdomain.com"
" Content-Type: multipart/alternative,"
Removing these spaces the email is interpreted/decoded properly. I means if I edit these line to lines to appear like:
"From: you at yourdomain.com"
"Content-Type: multipart/alternative,"
The email is interpreted/decoded properly.
As php-mail didn't change in the upgrade and I verified the arguments to the MAIL::send method are the same in both cases I suspect from the underlying php-net-smtp package, but I can be wrong.
:-)
-- System Information:
Debian Release: 12.1
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-12-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages php-net-smtp depends on:
ii php-common 2:93
ii php-net-socket 1.2.2-2
ii php-pear 1:1.10.13+submodules+notgz+2022032202-2
Versions of packages php-net-smtp recommends:
ii php-auth-sasl 1.1.0-1
php-net-smtp suggests no packages.
-- no debconf information
More information about the pkg-php-pear
mailing list