Bug #14947
closedMail form won't send from typo-script produced mail form
0%
Description
Since, I suspect, upgrading to 3.8 a mail form I produce using Typoscript has stopped sending emails.
However, another I have using a content element (type=form) still works fine.
I tried fiddling around with strict_formmail, referer checks and so on, but that only made them both not work.
I reach line 1950 of tslib_fe.php in all of this - it's looking for 'subheader' in a db record, but this is the bit that doesn't work for the Typoscript form.
Thank you!
This is possibly the same bug as 0001374, but I'm raising it separately in case it isn't.
My content element form specifies the recipient in the "Recipient-Email" section, which actually fills the data into tt_content.subheader.
The relevent part of my Typoscript form is here
temp.ADD_COMMENTS {
layout = <div class="bodyText">###LABEL###<br/>###FIELD###</div>
hiddenFields.subject= TEXT
hiddenFields.subject.value = Comment Submission
hiddenFields.email = TEXT
hiddenFields.email.value = info@mycompany.com
hiddenFields.html_enabled = TEXT
hiddenFields.html_enabled.value = 1
# THIS IS THE PID OF THE THANK YOU PAGE
redirect = 110
recipient = tantrum@mycompany.com
# This is needed, otherwise the email doesn't send
locationData = 1
no_cache=1
}
I tried putting recipient in as a hidden field directly, but t3lib_formmail has this as a reserved name and I suspect deletes it.
(issue imported from #M1409)