Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefined Receivers: is it possible to use same field twice? #1197

Open
zottelmann opened this issue Dec 10, 2024 · 1 comment
Open

Predefined Receivers: is it possible to use same field twice? #1197

zottelmann opened this issue Dec 10, 2024 · 1 comment

Comments

@zottelmann
Copy link

zottelmann commented Dec 10, 2024

Hello!

Typo3 v10, Powermail V8.5.1 (will be upgraded soon, i promise ;))
Is it possible to use a field multiple times to get more than one receiver? The Predefined receivers example works so far, but i was wondering if its possible to do something like this:

emailA = CASE
emailA {
        key.data = GP:tx_powermail_pi1|field|fieldA
        12345678=TEXT
        [email protected]
        default = TEXT
        default.value = [email protected]
}

#now checking the same field again:
emailB = CASE                            
emailB {
        key.data = GP:tx_powermail_pi1|field|fieldA
        key.stdWrap.crop = 3 | | 0
	123 = TEXT
	123.value = [email protected]
	default = TEXT
        default.value = [email protected]
}

# now make a list of mails to be sent
plugin.tx_powermail.settings.setup.receiver.predefinedReceiver.receivers1.email = {emailA.value},{emailB.value}

The code is just a mockup. But would it be possible?

Regards

@julianhofmann
Copy link
Contributor

email can be a comma-separated list of several e-mail addresses. And it can be any cObject. I.e. you only have to assemble the list correctly (i.e. with commas).
Your emailA and emailB Yare any cObjects. You can copy or reference these according to the normal TypoScript functionality to sub-objects within a cObject in email.

temp.emailA = TEXT
temp.emailA.value = [email protected]

plugin.tx_powermail.settings.setup.receiver.predefinedReceiver.receivers1.email = COA
plugin.tx_powermail.settings.setup.receiver.predefinedReceiver.receivers1.email {
  10 < temp.emailA
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants