addAttachment to Payment E-Mail
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
addAttachment to Payment E-Mail
hi there.
I've tried to attach a PDF to the payment mail following your configuration:
https://aimeos.org/docs/Configuration/C ... ttachments
here my typoscript translate in the scheduler section
I've tried relative and absolute path entries with/without domain. No mail at all is beeing sent as soon as I'm using this configuration. also no logo is beeing displayed at the top of the mail body.
by the way. I'm receiving customer account mails in arabic whereas payment mails are in the default language. how can this happen?
typo3 8.7.18
aimeos 18.7.0
any hints?
Volker
I've tried to attach a PDF to the payment mail following your configuration:
https://aimeos.org/docs/Configuration/C ... ttachments
here my typoscript translate in the scheduler section
Code: Select all
client.html.email {
payment.attachments {
0 = fileadmin/agb.pdf
}
email-logo = fileadmin/logo.png
}
by the way. I'm receiving customer account mails in arabic whereas payment mails are in the default language. how can this happen?
typo3 8.7.18
aimeos 18.7.0
any hints?
Volker
Re: addAttachment to Payment E-Mail
Guess, the data is still in the e-mail but the e-mail structure isn't recognized by the e-mail client. Can you check that?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: addAttachment to Payment E-Mail
how can I check that?
as stated before.
no mail is beeing sent at all as soon as I implement the attachment typoscript.
do you get a mail out on your typo3 reference system?
as stated before.
no mail is beeing sent at all as soon as I implement the attachment typoscript.
do you get a mail out on your typo3 reference system?
Re: addAttachment to Payment E-Mail
The configuration is used here:
https://github.com/aimeos/ai-client-htm ... d.php#L441
And the files added to the Swiftmailer library there:
https://github.com/aimeos/ai-swiftmaile ... t.php#L186
The problem must be a bug in the Swiftmailer library ...
https://github.com/aimeos/ai-client-htm ... d.php#L441
And the files added to the Swiftmailer library there:
https://github.com/aimeos/ai-swiftmaile ... t.php#L186
The problem must be a bug in the Swiftmailer library ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: addAttachment to Payment E-Mail
as soon as I comment out the mime type query
line 450ff. in
https://github.com/aimeos/ai-client-htm ... d.php#L450
things work as expected.
also the logo
is not beeing displayed for the same reason
line 450ff. in
https://github.com/aimeos/ai-client-htm ... d.php#L450
things work as expected.
also the logo
Code: Select all
client.html.email {
email-logo = fileadmin/logo.png
}
Re: addAttachment to Payment E-Mail
What's the mime type in the e-mail if it's determined by that functions and what without?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: addAttachment to Payment E-Mail
the following change in aimeos\Resources\Private\Extensions\ai-client-html\client\html\src\Client\Html\Email\Payment\Standard.php
line 449ff does solve it for us.
but of course it makes aimeos updates more difficult
line 449ff does solve it for us.
but of course it makes aimeos updates more difficult
Code: Select all
$mimetype = 'application/pdf';
$msg->addAttachment( $content, $mimetype, basename( $filename ) );
Re: addAttachment to Payment E-Mail
Seems like the "finfo" PHP extension isn't installed on your server so Aimeos can't determine the mime type automatically.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star