Config for multiple BCC-Mails?

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Webrocker
Posts: 6
Joined: 05 Dec 2023, 17:36

Config for multiple BCC-Mails?

Post by Webrocker » 22 Jan 2024, 11:21

Hi,

in the Aimeos Docu (https://aimeos.org/docs/latest/config/c ... cc-email_1) it says:

Code: Select all

Type: string|array - E-mail address or list of e-mail addresses
I tried to set this in the TYPO3 extension (planner/cronjob settings). When I state one email address

Code: Select all

…bcc-email= my@addre.ss
it works, but what is the supposed way to state it there as an array for multiple adresses?

I tried the TypoScript Array way

Code: Select all

 …bcc-email.10 = my@addre.ss 
 …bcc-email.20 = other@add.ress
 
, but then the job fails. I tried other variants like

bcc-email = COA
bcc-email.10 = text
bcc-email.10.value = my@addre.ss

as well, but this also didn't work.

I realize that the bcc-option is not recommended anyway, but in this particular setup is needed to send the mail to other addresses beside the customer.

thank you again for any hints

User avatar
aimeos
Administrator
Posts: 8027
Joined: 01 Jan 1970, 00:00

Re: Config for multiple BCC-Mails?

Post by aimeos » 23 Jan 2024, 11:20

Webrocker wrote: 22 Jan 2024, 11:21 I tried the TypoScript Array way

Code: Select all

 …bcc-email.10 = my@addre.ss 
 …bcc-email.20 = other@add.ress
 
, but then the job fails.

Code: Select all

controller.jobs.order.email.payment.bcc-email {
  0 = my@addre.ss 
  1 = other@add.ress
}
This should be correct but maybe the underlying Symfony Mailer package doesn't work as expected. Normally I would say, these lines of code should be correct according to the docs:
- https://github.com/aimeos/ai-typo3/blob ... #L118-L135
- https://api.typo3.org/12.4/class_t_y_p_ ... ssage.html
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Webrocker
Posts: 6
Joined: 05 Dec 2023, 17:36

Re: Config for multiple BCC-Mails?

Post by Webrocker » 24 Jan 2024, 17:56

aimeos wrote: 23 Jan 2024, 11:20
Webrocker wrote: 22 Jan 2024, 11:21 I tried the TypoScript Array way

Code: Select all

 …bcc-email.10 = my@addre.ss 
 …bcc-email.20 = other@add.ress
 
, but then the job fails.

Code: Select all

controller.jobs.order.email.payment.bcc-email {
  0 = my@addre.ss 
  1 = other@add.ress
}
This should be correct but maybe the underlying Symfony Mailer package doesn't work as expected. Normally I would say, these lines of code should be correct according to the docs:
- https://github.com/aimeos/ai-typo3/blob ... #L118-L135
- https://api.typo3.org/12.4/class_t_y_p_ ... ssage.html

Thank you, this

Code: Select all

controller.jobs.order.email.payment.bcc-email {
  0 = my@addre.ss 
  1 = other@add.ress
}
works for me now. yehaa! :-)

Post Reply