Base64 image larger than 1MB embedded to email not sent

Hi. I have followed the common found knowledge article on embedding images in emails using the base64 method, and it generally works using send email with Outlook 365, but I have an issue where images over 1 MB are not being displayed, so for example if I try to embed 5 images, of which 2 are above 1 MB, only the 3 images below 1 MB will be displayed, which is an issue as we may or may not have files above 1 MB that we need to embed which differs run to run

Short of having to loop through each file to check the size and then resizing them until it goes below 1 MB, is there an alternative that can let me get pass this issue? Attaching the images as an attachment and then referencing them as CID is not an option as we do not want to also send the images as separate attachments. Thanks

Hi @metallion

You can compress images dynamically before embedding them to reduce the size, or host the images externally and include them as URLs in the email to bypass the size limit.

If helpful, mark as solution. Happy automation with UiPath! :white_check_mark: