Project

General

Profile

Actions

Bug #14925

closed

No mail from mail-form, but from install-test&php&shell

Added by old_gizzmo66 over 18 years ago. Updated over 17 years ago.

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

0%

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

Description

I want to send an email with the email form, but i don't receive any mail. The test from the install tool is successfull (with and w/o html mail checkbox), a PHP script with mail() works well, and sending mail with mailx from command line too. But only the form does not send the email.

I've played around with php.ini sendmail_path =
"/usr/sbin/sendmail -t -i" or
"/usr/sbin/sendmail -i"
but no success.

The problem is, that I dont receive an error message. Typo forwards me to my "Thank you" page.

How can I generate a error message to see whats wrong?

Regards
Holger

Environment:
Gentoo Linux
Apache 2.4.54
PHP 4.4.0
MySQL 4.0.24
Typo 3.8
postfix as MTA
(issue imported from #M1374)


Files

modify_mail_form.txt (329 Bytes) modify_mail_form.txt Administrator Admin, 2005-09-03 18:26
bug-1374_02.patch (1.76 KB) bug-1374_02.patch Administrator Admin, 2006-04-27 10:29

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #16058: Forms not sending emails, was working but just stoppedClosed2006-04-16

Actions
Has duplicate TYPO3 Core - Bug #14262: Using input type="image" does not trigger $TSFE->checkDataSubmission()ClosedChris topher2004-08-03

Actions
Actions #1

Updated by old_gizzmo66 over 18 years ago

I've set $TYPO3_CONF_VARS["SYS"]["doNotCheckReferer"] = '1'; in typo3conf/localconf.php, but no mail.

Actions #2

Updated by Steven Bagshaw over 18 years ago

Not sure if it's related, but I've raised issue 0001409 - my mail form works if it is produced via a content element, but not if via Typoscript.

Actions #3

Updated by Sebastian Kurfuerst over 18 years ago

Hi, the problem might be related to $TYPO3_CONF_VARS['FE']['strictFormmail']., I disabled it on a server with the problem, and it works now. Of course this doesn't get us to the root of the problem...

Sebastian

Actions #4

Updated by old_gizzmo66 over 18 years ago

@ Sebastian
Thank you for your hint. I've tried $TYPO3_CONF_VARS['FE']['strictFormmail']='0' and $TYPO3_CONF_VARS['FE']['strictFormmail']=FALSE, but no MAIL

@ Steven
I've never tried sending mail with TScript. I use the native content element "Mail form". So maybe it's not the same problem.

Actions #5

Updated by old_gizzmo66 over 18 years ago

Hello,
maybe I've found the problem:
In my template I've reformatted the submit button. W/o this coding I can see the "old" Submit button, and the mail is successfully submitted.
The HTML-Coding changes as following:

w/o CODING
<input type="submit" name="formtype_mail" value="senden" />

with coding
<input type="image" name="formtype_mail" src="typo3temp/GB/0bfc3c3a75.png" width="130" height="20" border="0" alt="" title="" />

So my questions are:
1) Is it, and if how, possible to use an image as submit button in the MailForm? In Search and Login it works well.
2) Why does type="image" does not work in MailForm?

Regards
Holger

Actions #6

Updated by Wolfgang Klinger over 18 years ago

have you tried to give the <input type="image"> a "value" attribute (set to "senden")? I've not tried it yet, but that's missing if I compare the two input tags.

Actions #7

Updated by Peter Klein over 18 years ago

The problem is not really TYPO3 bug, but rather a browser 'bug', as input fields with type="image" doesn't return the name in all browsers, but instead returns the x,y coords of the place on the image where you clicked..

Try adding a hidden field to your form with the name of the original submit button. (name="formtype_mail")

Then give your Imagebutton a dummy name. Then it should work..

Actions #8

Updated by Thorsten Kahler over 18 years ago

The workaround suggested by pmk65 worked for us previously also. But a solution to this bug should go into tslib_fe::checkDataSubmission().
IMHO it's not a good solution to hand the responsibilty to (and expect the required knowledge from!) the editors. Using an image as submit button should work by default.

Actions #9

Updated by Ingmar Schlecht about 18 years ago

Thorsten, can you supply a patch?

cheers
Ingmar

Actions #10

Updated by Thorsten Kahler about 18 years ago

Hi Ingmar,

I suggest the attached patch.

As far as I could see there are no further implications, neither in tslib_fe::sendFormmail() nor in tslib_fe::fe_tce().

Actions #11

Updated by Ingmar Schlecht about 18 years ago

Hi Thorsten,

thanks for the patch!
I just sent it to the core list and am waiting for approval.

cheers from Switzerland
Ingmar

Actions #12

Updated by Ingmar Schlecht almost 18 years ago

Fixed in CVS HEAD and 4.0.

Actions

Also available in: Atom PDF