Einen Schritt weiter bin ich schon, der Versand des Mails wird über fe_adminlib.inc abgewickelt:
https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Index.html
Weil's der Marker "###EMAIL_TEMPLATE_NORECORD###" nur hier gibt. Die Datei findet man unter "typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc".
Müsste wohl das sein in Zeile 1400:
if (is_array($DBrows)) {
$recipient = $DBrows[0][$this->conf['email.']['field']];
$this->compileMail($config['label'], $DBrows, $recipient, $this->conf['setfixed.']);
} elseif ($this->cObj->checkEmail($fetch)) {
$this->sendMail($fetch, '', trim($this->cObj->getSubpart($this->templateCode, '###'.$this->emailMarkPrefix.'NORECORD###')));
}
Und zwar das "$this->sendMail mit emailMarkPrefix.'NORECORD###'", weiter geht's auf Zeile 1492:
if (!$this->isHTMLContent($content)) {
$this->cObj->sendNotifyEmail($content." [TEST]",
$recipient,
'',// ($admMail ? '' : $admin), // If the special administration mail was not found and send, the regular is...
$this->conf['email.']['from'],
$this->conf['email.']['fromName']
);
Ersetzen durch:
if (!$this->isHTMLContent($content)) {
if(stripos($content, "###FIELD_name###") === false) {
$this->cObj->sendNotifyEmail($content." [TEST]",
$recipient,
'', // ($admMail ? '' : $admin), // If the special administration mail was not found and send, the regular is...
$this->conf['email.']['from'],
$this->conf['email.']['fromName']
);
}
Bei mir funktionierts jetzt korrekt, soll heissen nur wenn der Marker "###FIELD_name### durch einen Wert ersetzt wurde wird auch ein Mail versendet. Also ist mein Problem damit gelöst (bis vielleicht ein anderes auftaucht).