Email Node - Include a picture in email content

 3 Replies
 4 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
agersh
Veteran Member
Posts: 81
Veteran Member
    Is it possible to include a pictures/graphics in the email content area of the Email node? I am assuming that the content type will need to ne HTML.   
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member

      Hi agersh,

      This is possible, though it works best with a static image. 

      The way I've done it is to store the image in the $LASYSDIR/LPS/emailattachments/ folder on the IPA server (we're on Unix, so adjust if you are on Windows).  Then, in the email node, the image is referenced by name as an attachment - just the image name and extension.  Then within the node html, call it with an img tag (or whatever) with src="cid:{imagename.ext}". 

      NOTE:  You have to add it to the Attachments tab for this to wrok, but it won't appear as an attachment in the email itself but will appear within the email body as an image.

      By the way, there is probably a way to do this with dynamic images, but I'm not sure.  You could try adding your image via variable and using cid:{variablename} and see if that works.

      See the attached sample flow (you'll need to change the extension...).

       

      Good Luck!

      Kelly

       

      Attachments
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      agersh
      Veteran Member
      Posts: 81
      Veteran Member
        Thanks Kelly, Great example, thank you again.
        Corvette Jim
        New Member
        Posts: 1
        New Member

          I have used pictures in the past for displaying company logos and pictures of requisition items using HTML and just pulling the pictures from web servers. I this case these pictures of items would need to be scanned first and identified by item number. Then pulled dynamically based on that item being in the requisition. This also pulls any header and line comments and add them to the Email as well as some basic requisition information. This email will show up with images already displayed and also a " View Requested Item" button showing same thing, just in a pop-up screen.

           And if you use the Notify tap in the user action instead of email node you can add the Action Buttons (Approve, Reject) to it.

          So I also attached the code in a notepad document.

           

           

          I hope this helps.

          Jim

           

          Attachments