【问题标题】:TYPO3 10 Form finisher sends out two emailsTYPO3 10 Form Finisher 发送两封电子邮件
【发布时间】: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.render ViewHelper(当时我不知道有什么更好的......)
  • 你让我走上了正轨。页面内容在 FrontEnd 中仅可见一次,但解决方案是:

标签: php typo3 typoscript typo3-extensions typo3-10.x


【解决方案1】:

解决方案: 我已经用

渲染了内容
<f:format.raw>{CONTENT}</f:format.raw>

之前。这导致了带有邮件完成程序的表单的描述行为。如果内容是用

呈现的
<f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '0'}" />

一切都很好。详情请见https://docs.typo3.org/c/typo3/cms-fluid-styled-content/master/en-us/Installation/InsertingContentPageTemplate/Index.html

【讨论】:

    猜你喜欢
    • 2012-08-20
    • 2011-02-08
    • 1970-01-01
    • 1970-01-01
    • 2015-10-13
    • 2016-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多