[TYPO3-core] Reminder: RFC #8522

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat May 3 15:54:45 CEST 2008


Hi!

Martin Kutschker wrote:
> I still don't get it why an address listed in the Reply-To header will 
> break the SMTP protcol. It simply shouldn't appear there. Can it be that 
> TYPO3 doesn't escape the "name part" before the email incorrectly?

It is not Reply-to. mini_sendmail and mail() on Windows use $to in "RCPT TO" SMTP command, which does not allow user name but only address. "Normal" sendmail will strip name portion and use only e-mail address:

= PHP =========================

@mail('"Dmitry <dmitry at typo3.org>", 'Spam', 'Whatever');

= SMTP ========================
MAIL FROM: apache at localhost
220 OK
RCPT TO: dmitry at typo3.org
250 OK
DATA
270 OK Terminate data with .<CR><LF><CR><LF>
From: "Dmitry" <dmitry at typo3.org>
Subject: Spam

Whatever
.
290 OK Accepted for delivery
QUIT
===============================

Windows mail() implementation and mini_sendmail will use $to as is and do this:

= PHP =========================

@mail('"Dmitry <dmitry at typo3.org>", 'Spam', 'Whatever');

= SMTP ========================
MAIL FROM: apache at localhost
220 OK
RCPT TO: "Dmitry" <dmitry at typo3.org>
555 5.5.4 Unsupported option: <dmitry at typo3.org>
QUIT
===============================

This can be treated as a bug in mail() on Windows or in mini_sendmail but it is much easier to make a workaround in TYPO3 than to force PHP team listen to arguments.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-team-core mailing list