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

No bcc-email #164

Open
kisar55 opened this issue Mar 15, 2021 · 8 comments
Open

No bcc-email #164

kisar55 opened this issue Mar 15, 2021 · 8 comments

Comments

@kisar55
Copy link

kisar55 commented Mar 15, 2021

After an upgrade TYPO3 9.5.x > 10.4.13 and Aimeos 19.10.x > 20.7. x > 20.10.6 no bcc-email is sent.

In the TypoScript configuration of the scheduler "Aimeos Shop advanced scheduler" there is still the line:

plugin.tx_aimeos.settings.client.html.email.bcc-email = [email protected]

The order delivery and order payment related e-mail to the client is triggered by cronjob and works, but no bcc-email.
The log aimeos and TYPO3 shows no entry.
Any idea where the error could be?

thank you

@aimeos
Copy link
Owner

aimeos commented Mar 16, 2021

The code for adding the BCC email address hasn't change between 19.x and 20.x:
https://github.com/aimeos/ai-client-html/blob/2020.10/client/html/src/Client/Html/Email/Payment/Standard.php#L287-L319

You only need:

client.html.email.bcc-email = [email protected]

in the TSConfig field of your scheduler task but the "plugin.tx_aimeos.settings." prefix works too.

@kisar55
Copy link
Author

kisar55 commented Mar 16, 2021

Thank you for the advice.
I have tested both ways of writing. No bcc-mail

New try - new test environment - different server
new TYPO3 10.4.11 installation with testshop aimeos_dist 20.10.1.
aimeos update to 20.10.6
SCHEDULER created
E-mail to clients - OK
No bcc-mail sent

I was able to reproduce the problem

@aimeos
Copy link
Owner

aimeos commented Mar 17, 2021

Are you also able to debug the problem to see where adding the BCC address fails?

@kisar55
Copy link
Author

kisar55 commented Mar 17, 2021

I'm more of an integrator than a programmer. But with a short guide / help, I am happy to try it.

@aimeos
Copy link
Owner

aimeos commented Mar 20, 2021

We think the problem may be somewhere in the Symfony Mailer component TYPO3 is using.

Can you check if the BCC address is added here (typo3conf/ext/aimeos/Resources/Private/Extensions/ai-typo3/lib/custom/src/MW/Mail/Message/Typo3.php):
https://github.com/aimeos/ai-typo3/blob/master/lib/custom/src/MW/Mail/Message/Typo3.php#L115

And then available here (vendor/symfony/mailer/Mailer.php):
https://github.com/symfony/mailer/blob/5.x/Mailer.php#L40

@aimeos
Copy link
Owner

aimeos commented Jun 5, 2021

The Symfony Mailer package TYPO3 is using has a bug which discards BCC adresses and which isn't fixed since several months:
symfony/symfony#39744

@aimeos aimeos pinned this issue Aug 27, 2021
@nvindice
Copy link
Contributor

Is there any workaround...?

@aimeos
Copy link
Owner

aimeos commented Nov 24, 2021

There's a workaround mentioned: https://forge.typo3.org/issues/92354

Also, you can use the new Email delivery service provider to send order e-mails to shop owners (and adapt the e-mail to your needs).

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

3 participants