BCC-Mail is not sent

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!
Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

BCC-Mail is not sent

Post by Moritz » 02 Dec 2022, 13:53

When the payment mail is sent, no copy is sent to the bcc-email address.
I configured it in my resource.php and it is retrieved correctly in the mailTo function.

resource.png
resource.png (36.25 KiB) Viewed 10674 times

bcc_mail.png
bcc_mail.png (81.56 KiB) Viewed 10674 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: BCC-Mail is not sent

Post by aimeos » 04 Dec 2022, 10:22

Since TYPO3 v10, this is a never ending source of problems:
https://github.com/aimeos/aimeos-typo3/issues/164
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: BCC-Mail is not sent

Post by Moritz » 06 Dec 2022, 10:22

So the two workarounds are:
  • Use -bs in the sendmail command

    Code: Select all

    /usr/sbin/sendmail -bs
  • Using the new Email delivery service provider to send order e-mails to shop owners

I can't test the first point currently because sendmail is not working on our server.
But in my test environment I use smpt with my mail to send emails.
There is bcc also ignored.

Can you explain how to implement the second point please?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: BCC-Mail is not sent

Post by aimeos » 07 Dec 2022, 09:21

The Email service decorator is documented here:
https://aimeos.org/docs/latest/manual/services/#email
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: BCC-Mail is not sent

Post by Moritz » 08 Dec 2022, 15:48

So then I have to configure it for every delivery service to have a workaround for the bcc problem?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: BCC-Mail is not sent

Post by aimeos » 09 Dec 2022, 14:38

Yes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: BCC-Mail is not sent

Post by Moritz » 15 Dec 2022, 15:45

Moritz wrote: 06 Dec 2022, 10:22 So the two workarounds are:
  • Use -bs in the sendmail command

    Code: Select all

    /usr/sbin/sendmail -bs
  • Using the new Email delivery service provider to send order e-mails to shop owners

I can't test the first point currently because sendmail is not working on our server.
But in my test environment I use smpt with my mail to send emails.
There is bcc also ignored.

Can you explain how to implement the second point please?
Unfortunately, the first option does not work for me.
When I use the Email delivery service provider. Can I disable the attachment (order.csv)?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: BCC-Mail is not sent

Post by aimeos » 19 Dec 2022, 08:35

You have to create your own delivery service provider and overwrite the send() method to remove the attachment:
https://github.com/aimeos/aimeos-core/b ... #L156-L170
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: BCC-Mail is not sent

Post by Moritz » 16 Jan 2023, 12:30

How can I use translation in my own delivery service provider?
When I use the following function it ignores my translations in TSConfig field of the task.

Code: Select all

$this->context()->translate('client/code', 'download');
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: BCC-Mail is not sent

Post by aimeos » 18 Jan 2023, 10:18

Can you post your TSConfig content?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply