htmlemailoracle-apexemail-attachmentsemail-templates

oracle apex, adding image to email template html body


`<div class="row" style="display: flex;">
    <div style="flex: 33.33%;
    padding: 5px;" class="column">
      <img src="#APP_FILES#icons/hololo.png" alt="Snow" style="width:50%">
    </div>
    <div style="flex: 33.33%;
    padding: 5px;" class="column">
      <img src="https://i.hizliresim.com/mxyxumi.png" alt="Forest" style="width:50%">
    </div>
</div>

this is my email template body, i want to add image from app but i couldn't make it, anyone can help?

i have a send email process and i want to send the mail via email template, in the code i tried like #APP_FILES#icons/hololo.png but i couldnot make it. i want people to see everything in my email template even when they don't have internet, how can i do that


Solution

  • Change the URL to reference a Content-ID:

    <img src="cid:hololo.png" alt="Snow" style="width:50%">
    

    and then read the file #APP_FILES#icons/hololo.png into a BLOB and add it to your e-mail as an attachment (See APEX_MAIL.ADD_ATTACHMENT) with the name hololo.png.