Home  >  Q&A  >  body text

How to add an image to the HTML body of an email template in Oracle APEX

<p><br /></p> <pre class="brush:php;toolbar:false;">`<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></pre> <p>This is my email template body, I want to add an image from the app but I can't do it, can anyone help?<br /><br />I have a send email Mail process, I want to send mail through email template, in code I try like #APP_FILES#icons/hololo.png but I can't make it. I want people to see all the content in my email template even if they don't have internet, how can I do that</p><p><br /></p>
P粉457445858P粉457445858466 days ago691

reply all(1)I'll reply

  • P粉299174094

    P粉2991740942023-08-02 15:40:33

    Replacement "#APP_FILES#" only exists in the context of an apex session. It is parsed by the APEX engine at runtime. It doesn't make any sense in an html file or email outside of APEX.

    When someone opens the email in his email client, APEX is not in the picture. So if an image is referenced in the body of an email, the image needs to be available to the email client in order to be rendered - typically within an intranet (in which case when the user logs into the intranet they will be able to image seen in the mail), or—if desired—on the public internet. Either way, a fully qualified url is required.


    reply
    0
  • Cancelreply