Bug #19365

Make "t3lib_beUserAuth->notifyHeader" configurable

Added by Fabrizio Branca over 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-09-22
Due date:
% Done:

0%

TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

t3lib_beUserAuth->notifyHeader is hardcoded to 'From: TYPO3 Login notify <no_reply@no_reply.no_reply>' in class.t3lib_beuserauth.php, line 85.

(issue imported from #M9407)

bug_9407_4-3.diff View (2.75 KB) Administrator Admin, 2010-10-01 10:15

bug_9407_4-4.diff View (2.64 KB) Administrator Admin, 2010-10-01 10:15

bug_9407_trunk.diff View (3.12 KB) Administrator Admin, 2010-10-01 10:15

T3X_user_beuser_fix9407-0_0_0-z-201012271027.t3x (1.08 KB) Administrator Admin, 2010-12-27 10:27


Related issues

Related to TYPO3 Core - Bug #22129: Non-RFC-conformant email adresses Rejected 2010-02-17
Related to TYPO3 Core - Bug #24599: Use Swift Mailer in core (t3lib_mail_*) and deprecate t3lib_htmlmail and related settings Closed 2011-01-16

History

#1 Updated by Chris topher almost 10 years ago

Hi Fabrizio,

can you provide a patch?
(Btw: There is a similar call, when there is an Install Tool login. Should be fixable exactly the same way.)

#2 Updated by Fabrizio Branca over 9 years ago

Hi Christopher.

I don't have much time these days, but if this can wait for another couple of days I surely can provide a patch.

Bye,

Fabrizio

#3 Updated by Simon Schick about 9 years ago

Hi, all

This bug was noticed in September 2008 - now we allmost have 2011.

Can you please apply this patch to the svn-trunk as soon as possible?
I'm looking forward to use this feature and I don't want to wait until it's implemented in TYPO3 v4.6 - I want to use it in TYPO3 v4.5 without xClass.

#4 Updated by Jonas Renggli over 8 years ago

This issue has been fixed in TYPO3 4.5.0 by Ernesto Baschny. The E-Mail at Login is now sent via SwiftMailer

                // If An email should be sent to the current user, do that:
            if ($this->uc['emailMeAtLogin'] && strstr($this->user['email'], '@')) {
                $from = t3lib_utility_Mail::getSystemFrom();
                /** @var $mail t3lib_mail_Message */
                $mail = t3lib_div::makeInstance('t3lib_mail_Message');
                $mail->setTo($this->user['email'])
                        ->setFrom($from)
                        ->setSubject($subject)
                        ->setBody($msg);
                $mail->send();
            }

Sender can be configured in localconf.php

$GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress']
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromName']

if there's no mail address configured getSystemFromAddress() in class.t3lib_utility_mail.php tries to generate a mail-address itself. It takes the domain from the first record found in table sys_domain and creates a mail address like

#5 Updated by Steffen Gebert over 8 years ago

  • Status changed from Needs Feedback to Rejected
  • Target version deleted (0)

resolved with 4.5

Also available in: Atom PDF