TYPO3 tx_form 复制给发件人(收件人副本)
TYPO3 tx_form copy to sender (recipient copy)
我已经在互联网上搜索了几个小时,检查了 TYPO3 文档、TS 参考等,但没有找到任何提示如何获取 TYPO3 6.2 标准表格以将副本发送给初始发件人表格。
也许这是不可能的,因为有人使用此表单将垃圾邮件发送到任何电子邮件地址的危险?我认为结合一个好的 SPAM 过滤器,这应该是一个易于管理的线程,此外,每个提交的表单也会发送给网站所有者,如果发生任何不良情况,他们可以干预并关闭表单。
在旧版本的 TYPO3 中,标准格式是可能的:
| recipient_copy=hidden | copy@email.com
所以,我正在寻找这样的东西:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation =
postProcessor {
1 = mail
1 {
recipientEmail = receipient@mail.com
recipientEmailCopyField = field_from_mailform //doesn't exist, but im looking for something like this
senderEmail = webmaster@website.com
subject = Lorem Ipsum
messages {
success = TEXT
success {
value = <p>Lorem ipsum dolor sit amet.</p>
}
}
}
}
提前致谢!
我知道这不是您问题的直接答案,但我建议不要使用系统扩展形式,而是使用更成熟的扩展形式,例如powermail2 或 formhandler.
更新:
虽然前者是我对 TYPO3 6.2 的推荐,但我很乐意指出 Björn 的以下评论:
With TYPO3 7 LTS the system extension "form" received a major improvement. Most parts of the extension were rewriten and are now based on extbase and fluid. The mail postProcessor is now complettely stdWrap-able and you can do something as proposed over here: http://forge.typo3.org/issues/32950#note-15. In TYPO3 8 the development of form will continue.
因此对于大多数任务,sysext 形式现在应该是合适的。
只是一个建议 - 不是 testet。但也许这可以通过像这样定义第二个 post 处理器来完成?:
2 = mail
2 {
recipientEmail = tx_form[21]
senderEmail = webmaster@website.com
subject = Lorem Ipsum
messages {
success = TEXT
success {
value = <p>Lorem ipsum dolor sit amet.</p>
}
}
}
国王问候
我做了一个扩展来解决这个问题,我只是在表单的 MailPostProcessor 中添加了一个 ccEmailField。安装扩展并使用它。 github 上关于 REAME 的更多信息:
https://github.com/taywa/t3ext-taywa_ccemailfield
或:
https://typo3.org/extensions/repository/view/taywa_ccemailfield
像这样使用它:
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
ccEmailField = email # uses field named "email"
recipientEmail = noise@taywa.ch
senderEmail = noise@taywa.ch
subject = Test of ccEmailField
messages {
success = TEXT
success {
value = <p>See you</p>
}
}
}
}
10 {
type = email
name = email
placeholder = Email
required = required
label {
value = Email
}
}
20 = SUBMIT
20 {
type = submit
name = submit
value = Submit
}
在typo3_8以后有选项:carbonCopyAddress
和blindCarbonCopyAddress
所以问题在新版本中很容易解决,不需要任何其他扩展。
我已经在互联网上搜索了几个小时,检查了 TYPO3 文档、TS 参考等,但没有找到任何提示如何获取 TYPO3 6.2 标准表格以将副本发送给初始发件人表格。
也许这是不可能的,因为有人使用此表单将垃圾邮件发送到任何电子邮件地址的危险?我认为结合一个好的 SPAM 过滤器,这应该是一个易于管理的线程,此外,每个提交的表单也会发送给网站所有者,如果发生任何不良情况,他们可以干预并关闭表单。
在旧版本的 TYPO3 中,标准格式是可能的:
| recipient_copy=hidden | copy@email.com
所以,我正在寻找这样的东西:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation =
postProcessor {
1 = mail
1 {
recipientEmail = receipient@mail.com
recipientEmailCopyField = field_from_mailform //doesn't exist, but im looking for something like this
senderEmail = webmaster@website.com
subject = Lorem Ipsum
messages {
success = TEXT
success {
value = <p>Lorem ipsum dolor sit amet.</p>
}
}
}
}
提前致谢!
我知道这不是您问题的直接答案,但我建议不要使用系统扩展形式,而是使用更成熟的扩展形式,例如powermail2 或 formhandler.
更新:
虽然前者是我对 TYPO3 6.2 的推荐,但我很乐意指出 Björn 的以下评论:
With TYPO3 7 LTS the system extension "form" received a major improvement. Most parts of the extension were rewriten and are now based on extbase and fluid. The mail postProcessor is now complettely stdWrap-able and you can do something as proposed over here: http://forge.typo3.org/issues/32950#note-15. In TYPO3 8 the development of form will continue.
因此对于大多数任务,sysext 形式现在应该是合适的。
只是一个建议 - 不是 testet。但也许这可以通过像这样定义第二个 post 处理器来完成?:
2 = mail
2 {
recipientEmail = tx_form[21]
senderEmail = webmaster@website.com
subject = Lorem Ipsum
messages {
success = TEXT
success {
value = <p>Lorem ipsum dolor sit amet.</p>
}
}
}
国王问候
我做了一个扩展来解决这个问题,我只是在表单的 MailPostProcessor 中添加了一个 ccEmailField。安装扩展并使用它。 github 上关于 REAME 的更多信息:
https://github.com/taywa/t3ext-taywa_ccemailfield
或: https://typo3.org/extensions/repository/view/taywa_ccemailfield
像这样使用它:
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
ccEmailField = email # uses field named "email"
recipientEmail = noise@taywa.ch
senderEmail = noise@taywa.ch
subject = Test of ccEmailField
messages {
success = TEXT
success {
value = <p>See you</p>
}
}
}
}
10 {
type = email
name = email
placeholder = Email
required = required
label {
value = Email
}
}
20 = SUBMIT
20 {
type = submit
name = submit
value = Submit
}
在typo3_8以后有选项:carbonCopyAddress
和blindCarbonCopyAddress
所以问题在新版本中很容易解决,不需要任何其他扩展。