Image in payment email is not correct

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!
promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Image in payment email is not correct

Post by promptnet » 07 Dec 2020, 13:21

Hi,
I configured the image for the email in the Scheduler this way:

Code: Select all

client.html.email.logo = /var/www/vhosts/correctpath-to-extension/Resources/Public/Images/logoemail.png
Now, in emails there are two(!) logo-images as attachments (twice the same), but the one within the html-part is not shown, neither in Outlook 365 nor in webmail. It shows a message to download the image but nothing happens!?
Is that problem known?

Thanks for help.
Kurt

Aimeos: 20.10.2
TYPO3: 10.4.10
PHP: 7.3.25

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

Re: Image in payment email is not correct

Post by aimeos » 08 Dec 2020, 09:51

Nobody brought this up before. The logo is attached here for the order confirmation:
https://github.com/aimeos/ai-client-htm ... d.php#L242
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Re: Image in payment email is not correct

Post by promptnet » 08 Dec 2020, 13:08

Ok, try to save it in an other format. Maybe PNG with alpha channel is not good...

promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Re: Image in payment email is not correct

Post by promptnet » 08 Dec 2020, 13:18

logoemail.png
logoemail.png (12.81 KiB) Viewed 5968 times
As you can see, the problem is still remaining...

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

Re: Image in payment email is not correct

Post by aimeos » 08 Dec 2020, 13:19

What is the source code of your email?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Re: Image in payment email is not correct

Post by promptnet » 08 Dec 2020, 13:32

Attached the email HTML code.
I realized that there are further problems:
  • In the scheduler I cannot provide a page ID for product catalog (Product catalog page ID). After saving the value is gone and the field is empty again.
  • The BCC recievers do not get the email. It is configured like that (the same way as in TYPO3 9.5):

    Code: Select all

    client.html.email.bcc-email {
      0 = email@email.com
      1 = email2@email.com
    }
What's the problem?
Attachments
email.zip
(3.3 KiB) Downloaded 365 times

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

Re: Image in payment email is not correct

Post by aimeos » 09 Dec 2020, 08:49

promptnet wrote: 08 Dec 2020, 13:32 Attached the email HTML code.
To see what has happened, we would need the full source code of the email from your inbox.
promptnet wrote: 08 Dec 2020, 13:32
  • In the scheduler I cannot provide a page ID for product catalog (Product catalog page ID). After saving the value is gone and the field is empty again.
This is a problem of the scheduler in rare cases when saving your new task the first time. We don't know why that happens but if you add your page ID again, it will be saved without problems.
promptnet wrote: 08 Dec 2020, 13:32 [*]The BCC recievers do not get the email. It is configured like that (the same way as in TYPO3 9.5):

Code: Select all

client.html.email.bcc-email {
  0 = email@email.com
  1 = email2@email.com
}
[/list]
This should work, you can check the code here:
https://github.com/aimeos/ai-client-htm ... #L287-L319
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Re: Image in payment email is not correct

Post by promptnet » 09 Dec 2020, 11:27

Attached the full source code of the email. I replaced every occurence of my personal data and of the shopholder data.

The BCC receivers do not get an email!? Why? I also added the following in the scheduler config and in main TS template:

Code: Select all

client.html.email.payment.bcc-email {
  0 = email@email.com
  1 = email@email.com
}
In main TS template with

Code: Select all

plugin.tx_aimeos.settings.client.html.email.payment.bcc-email
It seems that there is a severe problem with the installation...
Attachments
email.zip
(19.36 KiB) Downloaded 382 times

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

Re: Image in payment email is not correct

Post by aimeos » 11 Dec 2020, 11:40

promptnet wrote: 09 Dec 2020, 11:27 Attached the full source code of the email. I replaced every occurence of my personal data and of the shopholder data.
It contains the image two times as attachment but the image reference in the HTML section is different than for the attachments. I think we've found the problem and fixed it with this commit:
https://github.com/aimeos/ai-typo3/comm ... f1924a2355

Can you please check if it works now?
promptnet wrote: 09 Dec 2020, 11:27 The BCC receivers do not get an email!? Why? I also added the following in the scheduler config and in main TS template:

Code: Select all

client.html.email.payment.bcc-email {
  0 = email@email.com
  1 = email@email.com
}
In main TS template with

Code: Select all

plugin.tx_aimeos.settings.client.html.email.payment.bcc-email
Your configuration is correct. Can you check if the BCC addresses are added here:
https://github.com/aimeos/ai-client-htm ... d.php#L317
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

promptnet
Posts: 78
Joined: 24 Jul 2019, 12:22

Re: Image in payment email is not correct

Post by promptnet » 11 Dec 2020, 15:07

aimeos wrote: 11 Dec 2020, 11:40 I think we've found the problem and fixed it with this commit:
https://github.com/aimeos/ai-typo3/comm ... f1924a2355
Thanks - image is working now!
aimeos wrote: 11 Dec 2020, 11:40 Your configuration is correct. Can you check if the BCC addresses are added here:
https://github.com/aimeos/ai-client-htm ... d.php#L317
Yes, BCC addresses are added. I made a var_dump(), and they were displayed.

Post Reply