Bug #25029
closeddefaultMailFromName not used when defaultMailFromAddress is used in mailform
0%
Description
The content type (CType) is "mailform".
Settings in localconf:
$TYPO3_CONF_VARS['MAIL']['transport'] = 'mbox';
$TYPO3_CONF_VARS['MAIL']['defaultMailFromAddress'] = 'defaultMailFromAddress@*****.*****.**';
$TYPO3_CONF_VARS['MAIL']['defaultMailFromName'] = 'defaultMailFromName';
$TYPO3_CONF_VARS['MAIL']['transport_mbox_file'] = 'typo3mbox';
The resulting Mail in mBox:
From defaultMailFromAddress@*****.*****.** Mo 14 Feb 2011 11:00:43 CET
Message-ID: <1297677643.4d58fd4b47104@*****.*****.**>
Date: Mon, 14 Feb 2011 11:00:43 +0100
Subject: Kontaktformular
From: "" <defaultMailFromAddress@*****.*****.**>
To: crtausch@t*****.*****.**
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="_=_swift_v4_12976776434d58fd4b402ef_=_"
X-Priority: 3 (Normal)
X-Mailer: TYPO3
X-Mailer: TYPO3
--_=_swift_v4_12976776434d58fd4b402ef_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
ANREDE: Herr
VORNAME: bli
NACHNAME: bla
...
As you can see, the From ist missingthe name.
same Result with $TYPO3_CONF_VARS['MAIL']['transport'] = 'mail';
Create mailform with "name" or "from_name" field, but with "email" or "from_email" field. The defaultMailFromAddress mail address is used, but with the name from the form.
If no name is entered in the form the senders name is filled with two double quotes.
(issue imported from #M17574)
Files