Bug #18701
closed
The docs say only that the name may not be used in the "to" argument of the mail() function. It is not clear why the valid headers for From: and Reply-To: don't work for you.
I assume your patch comes from experience?
Yes, the patch comes from experience.
Some of our clients run TYPO3 on Windows servers and all installations have the same problem.
I have added a small test script which tries to send an email two times and shows the results TRUE and FALSE.
Please replace the email address with a valid address.
I attach a different solution (8255_alt_v1.diff), which fixes also the problem with mini_sendmail. It takes care about t3lib_div::plainMailEncoded().
To test the patch use user_sendmail.php. Put it to fileadmin/ and use the following TS on a dedicated page:
includeLibs.user_sendmail = fileadmin/user_sendmail.php
page >
page = PAGE
page.typeNum = 0
page.10 = USER_INT
page.10.userFunc = user_sendmail
Make sure you change e-mail addresses in this script.
Attached newever version that fixes some more mail problems in the same files
Hi Dmitry,
can you please separate the " => ' transformations from the functional changes? Makes it easier to review...
Additionally: What is the reason for writing "This is a multi-part message in MIME format" twice in a row?
- michael
Sorry, Michael. I already put lots of time into this patch. I am not willing to spend extra hour to separate space related changes.
Also available in: Atom
PDF