Contact Form 7 - 带有管道的可选收件人未发送正确的值

Contact Form 7 - Selectable recipients with pipes not sending correct values

我在 Contact Form 7 (CF7) 中使用 select 带管道的收件人时遇到问题。

代码

[group loc1]
[md-select label="department"][select* dept-loc1 include_blank
"Machine 1|testperson1@test.com"
"Machine 2|testperson2@test.com"
"Machine 3|testperson3@test.com"
"Machine 4|testperson1@test.com"
[/md-select]
[/group]

[group loc2]
[md-select label="department"][select* dept-loc2 include_blank
"Machine 5|testperson3@test.com"
"Machine 6|testperson1@test.com"
"Machine 7|testperson3@test.com"
[/md-select]
[/group]

md-select 标签用于 Material 设计插件。

如果我在 Location/Group 1 中 select“机器 4”,将向“testperson1@test.com”发送一封电子邮件,但内容为“机器 1”而不是“机器” 4"。在 Location/Group 2 中也是同样的问题。如果我 select“机器 7”,将向“testperson3@test.com”发送一封内容为“机器 5”而不是“机器 7”的电子邮件。

有人知道如何解决这个问题吗?

使用电子邮件别名来解决这个问题,试试这个:

[group loc1]
[md-select label="department"][select* dept-loc1 include_blank
"Machine 1|testperson1@test.com"
"Machine 2|testperson2@test.com"
"Machine 3|testperson3@test.com"
"Machine 4|testperson1+4@test.com"
[/md-select]
[/group]

[group loc2]
[md-select label="department"][select* dept-loc2 include_blank
"Machine 5|testperson3@test.com"
"Machine 6|testperson1@test.com"
"Machine 7|testperson3+7@test.com"
[/md-select]
[/group]

我知道 + 添加在 gmail 上有效,我没有尝试过其他电子邮件。如果它不适用于您的电子邮件域服务器,那么您将需要为您要在您的领域内多次使用的那些电子邮件地址创建 email aliases,每次额外使用一个别名。