Send TYPO3 EXT: Powermail to various recipients, depending on the selection in the drop-down list

I often have a requirement to send the powermail form to various recipients, depending on the choice of the selection field inside the form. I am using TYPO3 7.6.x and Powermail 3.3.0 How can this be done?

+4
source share
1 answer

Using @ alex-kellner in slackchannel EXT: powermail, I found a pretty simple solution for this:

Basically 2 steps are required:

Step1

The parameter values ​​in the selection box. You need to add values ​​to your option in the selection box. You can do this by adding pipe to your parameter |and simply adding a value

MyRecieverEmail 1 | 1

MyRecieverEmail 2 | 2

MyRecieverEmail 3 | 3

// . extended .

"" , . {}, 2

2

TS .

: :

plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = your@email.com

, . :

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1]

yourVariableFieldname extended 1 - (MyRecieverEmail 1)

TS, ​​ @email.com, MyRecieverEmail 1 :

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1]
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = your@email.com
[global]

, . :

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 1]
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = yourfirst@email.com
[global]
[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 2]
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = yoursecond@email.com
[global]
[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 3]
plugin.tx_powermail.settings.setup.receiver.overwrite.email = TEXT
plugin.tx_powermail.settings.setup.receiver.overwrite.email.value = yourthird@email.com
[global]

, {yourVariableFieldname} TYPO3-Install, TS . , , , . , , 2 , :

  • TS , .

  • :

    & & [globalString = GP: tx_powermail_pi1 | mail | form = 123]

123 - .

:

[globalString = GP:tx_powermail_pi1|field|yourVariableFieldname = 2] && [globalString = GP:tx_powermail_pi1|mail|form = 123]
+8

Source: https://habr.com/ru/post/1663815/


All Articles