Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 打字3 fe经理如何获取不同的管理员电子邮件_Typo3_User Registration - Fatal编程技术网

Typo3 打字3 fe经理如何获取不同的管理员电子邮件

Typo3 打字3 fe经理如何获取不同的管理员电子邮件,typo3,user-registration,Typo3,User Registration,我有一个关于fe经理的问题。在此扩展中,可以向管理员发送确认电子邮件。但它总是同一封电子邮件。我喜欢给不同的管理员发电子邮件。例如:如果新用户来自德国,则接收地址应为some@thing.de. 如果新用户来自瑞士,则地址应为some@thing.ch. 你知道怎么做吗 欢迎提供任何提示/解决方案 当前状态: 已创建扩展。我将finalCreate方法从AbstractController复制到我的NewController。我将MakeMailArray()更改为: Div::makeEmai

我有一个关于fe经理的问题。在此扩展中,可以向管理员发送确认电子邮件。但它总是同一封电子邮件。我喜欢给不同的管理员发电子邮件。例如:如果新用户来自德国,则接收地址应为some@thing.de. 如果新用户来自瑞士,则地址应为some@thing.ch. 你知道怎么做吗

欢迎提供任何提示/解决方案

当前状态:

已创建扩展。我将finalCreate方法从AbstractController复制到我的NewController。我将MakeMailArray()更改为:

Div::makeEmailArray(
$this->settings['new']['notifyAdmin'],
$this->settings['new']['email']['createAdminNotify']['receiver']['name']['value']
),

致:

Div::makeEmailArray('xxx@xxx.ch',
$this->settings['new']['email']['createAdminNotify']['receiver']['name']['value']
),

ts setup.txt文件位于femanager_extended/Configuration/TypoScript/setup.txt中 并包含以下代码:

config.tx\u extbase.objects{
In2\Femanager\Controller\NewController.className=Lbaumann\femanagerextend\Controller\NewController
}


这是正确的方法吗

此行为没有TypoScriptConfig,但您可以轻松覆盖ControllerMethod并根据需要扩展它

创建您自己的扩展,如供应商“Vendor”(公司/客户名称),并使用扩展生成器键“femanager_extended”

femanager_extended/Classes/Controller/NewController.php

<?php
namespace Vendor\FemanagerExtended\Controller;


class NewController extends \In2\Femanager\Controller\NewController
{
    public function finalCreate($user, $action, $redirectByActionName, $login = true)
    {
        // own business logic
        // replace the first Div::makeEmailArray... 
        // with your selected Admin-email-address
        // see parent::finalCreate($user, $action, $redirectByActionName, $login);
    }
}

我希望这将对您有所帮助,我不会忘记任何设置。

我不确定这是否是正确的功能。我想要不同的电子邮件。但是你提到的功能似乎就是管理员通知功能。还是我错了?
config.tx_extbase.objects {
    In2\Femanager\Controller\NewController.className = Vendor\FemanagerExtended\Controller\NewController
}