【发布时间】:2021-06-17 11:47:20
【问题描述】:
我的 TYPO3 10.4.17 网站上使用电子邮件整理器的所有表单都有一个奇怪的问题。整理者每次向每个收件人发送两封相同的电子邮件。 有谁知道我如何摆脱第二条消息?
谢谢!
fileadmin/form_definitions/testform.form.yaml
renderingOptions:
submitButtonLabel: Absenden
type: Form
identifier: testform
label: Testform
prototypeName: standard
finishers:
-
options:
subject: Testform
recipients:
[my email address]: ''
senderAddress: noreply@[...]
senderName: ''
addHtmlPart: true
attachUploads: true
translation:
language: Standard
useFluidEmail: false
title: ''
identifier: EmailToReceiver
renderables:
-
renderingOptions:
previousButtonLabel: 'Vorherige Seite'
nextButtonLabel: 'Nächster Schritt'
type: Page
identifier: page-1
label: Step
renderables:
-
defaultValue: ''
type: Textarea
identifier: textarea-1
label: Textfeld
第一条消息:
Return-Path: <noreply@[removed]>
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on [removed]
X-Spam-Level:
X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,BAYES_00,
HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2
X-Original-To: [removed]
Delivered-To: [removed]
Received: from [127.0.0.1] [removed]
by [removed] (Postfix) with ESMTPSA id A1C5915A145C
for [removed]; Thu, 17 Jun 2021 13:24:59 +0200 (CEST)
From: noreply@[removed]
To: [removed]
Subject: Testform
X-Mailer: TYPO3
Message-ID: <22d072eef5791cebf35ebcecee59ba0f@[removed]>
MIME-Version: 1.0
Date: Thu, 17 Jun 2021 13:24:59 +0200
Content-Type: multipart/alternative; boundary=p-G2S-8S
--p-G2S-8S
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Textfeld: Test Inhalt
--p-G2S-8S
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://w=
ww.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
=
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8">=
<meta name=3D"format-detection" content=3D"telephone=3Dno">
</head=
>
<body>
<table width=3D"600" cellpadding=3D"0" cellspacing=3D"0" b=
order=3D"0">
=20
<tr>
=20
=
<td width=3D"600" valign=3D"top" align=3D"left">Textfeld</td>=
<td width=3D"600" valign=3D"top" align=3D"left">=
=20
=20
=
<table cellspacing=3D"0" border=
=3D"0">
<tr>
=
<td>Test Inhalt</td>
=
</tr>
=
</table>
=20
=
=20
</td>
=
=20
</tr>
=20
</table>
</body>
</html>
--p-G2S-8S--
第二条信息:
Return-Path: <noreply@[removed]>
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on [removed]
X-Spam-Level:
X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED,BAYES_00,
HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2
X-Original-To: [removed]
Delivered-To: [removed]
Received: from [127.0.0.1] [removed]
by [removed] (Postfix) with ESMTPSA id 18ACB15A1492
for [removed]; Thu, 17 Jun 2021 13:25:00 +0200 (CEST)
From: noreply@[removed]
To: [removed]
Subject: Testform
X-Mailer: TYPO3
Message-ID: <af16ae610105ae22a01ae6b0718f2cba@[removed]>
MIME-Version: 1.0
Date: Thu, 17 Jun 2021 13:25:00 +0200
Content-Type: multipart/alternative; boundary=w50f9lfA
--w50f9lfA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Textfeld: Test Inhalt
--w50f9lfA
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://w=
ww.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
=
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8">=
<meta name=3D"format-detection" content=3D"telephone=3Dno">
</head=
>
<body>
<table width=3D"600" cellpadding=3D"0" cellspacing=3D"0" b=
order=3D"0">
=20
<tr>
=20
=
<td width=3D"600" valign=3D"top" align=3D"left">Textfeld</td>=
<td width=3D"600" valign=3D"top" align=3D"left">=
=20
=20
=
<table cellspacing=3D"0" border=
=3D"0">
<tr>
=
<td>Test Inhalt</td>
=
</tr>
=
</table>
=20
=
=20
</td>
=
=20
</tr>
=20
</table>
</body>
</html>
--w50f9lfA--
【问题讨论】:
-
我只是在猜测,因为我曾经在使用另一个插件时遇到过这样的问题:问题可能是您渲染内容两次 - 因此插件代码运行两次。在我的情况下,这是我的主(布局)模板中的某个内容,我在其中检查列是否有任何内容(因此渲染一次) - 然后渲染内容(另一次......)。那时我正在使用 EXT:vhs 中的
v:content.renderViewHelper(当时我不知道有什么更好的......) -
你让我走上了正轨。页面内容在 FrontEnd 中仅可见一次,但解决方案是:
标签: php typo3 typoscript typo3-extensions typo3-10.x