[英]TYPO3 Multiple addresses for Powermail
I have a custom extension with 20 records. 我有20条记录的自定义扩展名。
Each record has a field of E-Mail. 每个记录都有一个电子邮件字段。
How can I add all email address in powermail as the recipient. 如何在powermail中添加所有电子邮件地址作为收件人。
This example gives me only one E-Mail address of this record in the details page. 本示例在详细信息页面中仅向我提供此记录的一个电子邮件地址。
plugin.tx_powermail{
settings.setup{
prefill{
mailadresses = RECORDS
mailadresses {
source.data = GP:tx_myext_list|example
source.insertData=1
source.intval = 1
tables=tx_myext_domain_model_example
conf{
tx_myext_domain_model_example>
tx_myext_domain_model_example=TEXT
tx_myext_domain_model_example{
field=email
htmlSpecialChars = 1
}
}
}
so GP:tx_myext_list|example
is an comma separated list of uids from your models? 所以GP:tx_myext_list|example
是模型中以逗号分隔的uid列表吗? Otherwise it return only one. 否则,它仅返回一个。 If it a comma separated list, intval = 1
will make it to only one integer and remove the list. 如果它是一个用逗号分隔的列表,则intval = 1
将使其变成一个整数并删除该列表。
Also insertData = 1
is not needed because you use data =
. 另外,因为您使用data =
,所以不需要insertData = 1
。
My solution. 我的解决方案。 Or can there be problems? 还是有问题?
lib.multimail = CONTENT
lib.multimail {
#Welche Tabelle
table = tx_myext_domain_model_example
select {
#PID/Ordner
pidInList = 10
#andWhere {
# value = 1=1
#}
andWhere = hidden=0
#andWhere = deleted=0
}
renderObj = TEXT
#Name des Tags in der Tabelle
renderObj.field = email
renderObj.wrap = |,
}
In receiver by Powermail: 在Powermail的收件人中:
{f:cObject(typoscriptObjectPath: 'lib.multimail')}
Thanks for the help. 谢谢您的帮助。 :-) :-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.