Improved emailing function so the email body is now inlined

But this would be Gmail doing it… I think Gmail will remove inline images over certain size. Can you experiment with smaller logo size? I don’t believe Gmail will remove all inline images. I think there will be size treshhold.

What does it look like on your mobile phone? I didn’t have success with the mobile layout.

today i can’t send an invoice by email

i get this error massage ( Unexpected end of file. )

any idea please

Do you use a custom theme?

No , the Default

@a.alghofaily

Invalid element 'div'.Unexpected end of file.

Do you use Qrcode Image?

It seems that email can only run if the entire contents of the invoice are in one table. The Qrcode was not written in the Invoice table, this is the reason sending the email failed with this error.

yes , the Qr Code image shown in the invoice by default and its was working perfectly for a year what i should do now

The new email feature is not working well at the moment.
Cannot send email with QRcode
Email clients, such as Gmail, do not display images in invoices.
@lubos should take a look at this

The temporary solution is to reactivate the Internal Pdf Generator feature, to send invoices as pdf attachments. Or send emails manually.

I hope sending Public Links for Invoices in emails is re-enabled as an option for users.

@Ealfardan @Abeiku
I see QRcode is part of localization. The localization file needs to be modified to add the QRcode element to the Invoice Table.

1 Like

I will take a look into this.

Change this line

document.getElementById('printable-content').innerHTML += '<div id="qrcode" style="padding: 20px"></div>';
to
document.querySelector('#printable-content > table').innerHTML += '<div id="qrcode" style="padding: 20px"></div>';

This work for Indonesia

good morinig

Any update guys ?

Did you try @Mabaega code change just above your post?

I address my code above to those who work on localization.

We can create a script as a temporary solution so that emails containing Qrcodes can be sent.

This script is only for the invoice that you will create, not for previous invoices, because you need to change the previous invoice if you want to use it. And this change will change your Qrcode date.

Create New Footer for Sales Invoice or Credit Note.
Paste this code.

<div id="moveqr">
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            var qrcodeDiv = document.getElementById('qrcode');
            if (qrcodeDiv && qrcodeDiv.parentNode.tagName !== 'TD') {
                qrcodeDiv.style.padding = '0px';
                var mainTable = document.querySelector('#printable-content > table');
                if (mainTable) {
                    var newRow = mainTable.insertRow();
                    var newCell = newRow.insertCell();
                    newCell.colSpan = 99; 
                    newCell.appendChild(qrcodeDiv);
                }
                var canvasElement = qrcodeDiv.querySelector('canvas');
                if (canvasElement) {
                    canvasElement.remove();
                }
            }
            var moveqrDiv = document.getElementById('moveqr');
            if (moveqrDiv) {
                moveqrDiv.remove();
            }
        });
    </script>
</div>

Use this footer on your new invoice.
This script will move the Qrcode image into the Invoice Table.

2 Likes

its , works :100:

thanks

the mail working good , but now the bill business delitels in outlook look like this

1 Like

@Mabaega
I was wondering if you could share your theme with us?

yes please can you share it i excited try it :heart_eyes:

Can your share this theme with us please ?

I have this same issue. The name of the company and address shows up like this. We use outlook company wide and it shows like this on outlook and windows mail. Shows up fine on apple mail and gmail etc. But our entire org uses outlook. It’s sad. That we cannot even send payslips to our employees because of this.
Screenshot 2024-05-08 at 4.29.06 PM
e

1 Like

any solution guys ??

thanks :tulip: