Project

General

Profile

Actions

Bug #22894

closed

Install Tool does not send test mails

Added by Mark Iron over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-06-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Even the install-tool displays a confirmation like: Mail was sent to: I don't get the E-Mail. Instead there is an error message in belog:
Core: Mail to "" could not be sent (Subject: "TEST SUBJECT")

It looks like t3lib/utility/class.t3lib_utility_mail.php does not correctly use the email-address input from the install-tool (Basic Configuration).

Typo3 4.3.3 on the same server sends correctly testmails (using testmail in the install-tool)

regards
Mark

Install Tool reports:
Sendmail OK

sendmail_path=/var/www/domain_comch/execdir/sendmail -t -i

The return-path of the mail is set to . Some mail servers won't send the mail if the host of the return-path is not resolved correctly.
(issue imported from #M14741)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #22909: sendNotifyEmail always returns true if no email addresses are givenClosed2010-06-17

Actions
Has duplicate TYPO3 Core - Bug #22895: Sending of testmail from the install tool fails (class.t3lib_utility_mail.php) - Core: Mail to "" could not be sentClosedChris topher2010-06-15

Actions
Is duplicate of TYPO3 Core - Bug #23277: Mailing doesn´t work with safe mode onClosedSteffen Gebert2010-07-27

Actions
Actions #1

Updated by Mark Iron over 14 years ago

Or just when trying to send a forgotten password (felogin) to the email address of a registered user:

---
15-06-10 23:49 - cms: Locking [simple::ca454c9cb09a91b31a6b688219ea6bb5]: Acquired lock
15-06-10 23:49 - cms: $TSFE->set_no_cache() was triggered by typo3/sysext/cms/tslib/class.tslib_fe.php on line 2150. Caching is disabled!
15-06-10 23:49 - cms: $TSFE->set_no_cache() was triggered by typo3/sysext/cms/tslib/class.tslib_fe.php on line 3085. Caching is disabled!
15-06-10 23:49 - cms: Locking [simple::ca454c9cb09a91b31a6b688219ea6bb5]: Released lock
15-06-10 23:49 - Core: Mail to "" could not be sent (Subject: "Ihr neues Passwort").
---

Actions #2

Updated by Mark Iron over 14 years ago

When using the safe_mode it is allowed for mail(..) to use only four parameters (s. further below)
After changing the count of parameters to four (like below) it started to work.
---
//$success = @mail($to, $subject, $messageBody, $additionalHeaders, $additionalParameters);
$success = @mail($to, $subject, $messageBody, $additionalHeaders);
t3lib_div::debug('success1: ',$success);
---

I will switch off the safe_mode in apache.conf and try to run it with all five parameters in the call of mail(..) / t3lib/utility/class.t3lib_utility_mail.php

Meesages in the logfile:
---
16-06-10 13:34 - Core: Error handler (FE): PHP Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE in /usr/share/typo3/typo3_src-4.4/t3lib/utility/class.t3lib_utility_mail.php line 80
16-06-10 13:34 - Core: Mail to "" could not be sent (Subject: "Ihr neues Passwort").

Actions #3

Updated by Mark Iron over 14 years ago

Onother issue is that you get a confirmation message even the email hasn't been sent out (in the install tool)

Actions #4

Updated by Mark Iron over 14 years ago

It works with all FIVE parameters in mail(..) / t3lib/utility/class.t3lib_utility_mail.php and switched off safe_mode (s. below the php config for apache)

---
grep safe_mode /etc/itinfra_comch/*
/etc/domain_comch/apache.conf: #php_admin_value safe_mode on
/etc/domain_comch/apache.conf: php_admin_value safe_mode off
/etc/domain_comch/apache.conf: #php_admin_value safe_mode_gid on
/etc/domain_comch/apache.conf: php_admin_value safe_mode_gid off
/etc/domain_comch/apache.conf: # php_admin_value safe_mode_include_dir /usr/share/typo3/typo3_src-4.3/
/etc/domain_comch/apache.conf: php_admin_value safe_mode_exec_dir /var/www/domain_comch/execdir/
/etc/domain_comch/domain.ch_apache-ssl.conf: #php_admin_value safe_mode on
/etc/domain_comch/domain.ch_apache-ssl.conf: php_admin_value safe_mode off
/etc/domain_comch/domain.ch_apache-ssl.conf: #php_admin_value safe_mode_gid on
/etc/domain_comch/domain.ch_apache-ssl.conf: php_admin_value safe_mode_gid off
/etc/domain_comch/domain.ch_apache-ssl.conf: php_admin_value safe_mode_exec_dir /var/www/domain_comch/execdir/
/etc/domain_comch/domain.com_apache-ssl.conf: #php_admin_value safe_mode on
/etc/domain_comch/domain.com_apache-ssl.conf: php_admin_value safe_mode off
/etc/domain_comch/domain.com_apache-ssl.conf: #php_admin_value safe_mode_gid on
/etc/domain_comch/domain.com_apache-ssl.conf: php_admin_value safe_mode_gid off
/etc/domain_comch/domain.com_apache-ssl.conf: php_admin_value safe_mode_exec_dir /var/www/domain_comch/execdir/
/etc/domain_comch/localconf.php:// If safe_mode is activated with TYPO3, disable use of
/etc/domain_comch/localconf.php_ORIG:// If safe_mode is activated with TYPO3, disable use of
/etc/domain_comch/srv1.domain4t3admin.net_apache-ssl.conf: #php_admin_value safe_mode on
/etc/domain_comch/srv1.domain4t3admin.net_apache-ssl.conf: php_admin_value safe_mode off
/etc/domain_comch/srv1.domain4t3admin.net_apache-ssl.conf: #php_admin_value safe_mode_gid on
/etc/domain_comch/srv1.domain4t3admin.net_apache-ssl.conf: php_admin_value safe_mode_gid off
/etc/domain_comch/srv1.domain4t3admin.net_apache-ssl.conf: php_admin_value safe_mode_exec_dir /var/www/domain_comch/execdir/

Actions #5

Updated by Mark Iron over 14 years ago

You can type in an email address like "xyz" and you will still get a confirmation in the install tool that a testmail has been sent to "xyz".

It is however ANOTHER issue - safe_mode (PHP) allows only 4 parameters of mail() - s. my description above.

Best regards
Mark

Actions #6

Updated by Mark Iron over 14 years ago

I guess it can be close as I didn't notice such problems with typo3 4.4.0

Actions

Also available in: Atom PDF