Project

General

Profile

Actions

Bug #14947

closed

Mail form won't send from typo-script produced mail form

Added by Steven Bagshaw over 18 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-08-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 =
hiddenFields.html_enabled = TEXT
hiddenFields.html_enabled.value = 1 # THIS IS THE PID OF THE THANK YOU PAGE
redirect = 110
recipient = # 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)

Actions

Also available in: Atom PDF