typo3typo3-9.xpowermail

powermail dynamic receivers based given number


The Task: User Types a number into field "x". The first 3 Digits are used to determine the receiver-mail.

What i have got so far:

plugin.tx_powermail.settings.setup.receiver.predefinedReceiver {
receiverstest.email = CASE
receiverstest.email {
    key.data = GP:tx_powermail_pi1|field|x
    key.stdWrap.crop = 3 | | 0

    001 = TEXT
    001.value = receiver1@mailtest.com

    002 = TEXT
    002.value = receiver2@mailtest.com

    default = TEXT
    default.value = default@mailtest.com
}

}

The Problem: Powermail uses always the default mail. The Questions: What is my error here? How can it work?

Thank you!


Solution

  • Mystery solved: i forgot to set this in the page TSconfig:

    tx_powermail.flexForm.predefinedReceivers.addFieldOptions.receiverstest = receivers #1
    

    Thank you all for the help!