--- title: "How Do I Embed Images into HTML Emails Sent from Lasernet?" slug: "how-do-i-embed-images-into-html-emails-sent-from-lasernet" description: "This article explains how to create an email in Lasernet via an XHTML form or by populating the JobInfo ‘MailBodyHTML’ via a script." updated: 2026-10-05T10:04:17Z published: 2026-10-05T10:04:17Z canonical: "kb.lasernetgroup.com/how-do-i-embed-images-into-html-emails-sent-from-lasernet" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # How Do I Embed Images into HTML Emails Sent from Lasernet? You can create an email in Lasernet via an HTML/XHTML form or by populating the MailBodyHTML JobInfo through a script. ### **Image Source** ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-275YDIHJ.png) Three options are available when choosing the image source: #### Local An image from a local drive or network. This option will only display for recipients with access to the following location: `img src="smiley.gif"alt="Smiley face">` `img src="/subfolder/smiley.gif" alt="Smiley face">` `img src="c:\images\smiley.gif" alt="Smiley face">` #### Remote A remote image from the Internet or Intranet. This is the most common way to embed images in an email. Location: `<img src="http://server/images/smiley.gif" alt="Smiley face" />` `<img src="http://server.com/images/smiley.gif" alt="Smiley face" />` #### Embedded Base64 encoded image data. > [!NOTE] > Note > > Not all browsers/email clients have access to this. The image will need to be converted using an external tool or via the HTML/XHTML form engine. Location: `<img src="image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAD NCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5c cllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EEK gCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ 0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtyaGhoaGhoaGhoaGhoaGhoxtb0QGho aGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6x v3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0 NDQ0NDQ0NTXbRSL/AK72o6GhoaGhoRlL8951vwsNDQ0NDQ1NDc0WyHtDTEhD Q0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwRQ AAAAAElFTkSuQmCC" alt="Beastie" />` Once the image source has been chosen, the image can be added to the email using one of the following two ways: ### HTML/XHTML Output Form HTML/XHTML output format requires the XML Output licence option (contact our sales department if you need this functionality). Once this is done, follow these steps: 1. Set the **Inputs** and **Output** formats within the **Form Properties** window: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1645193966344.png) 1. Open the **Template** tab on the form and, using the **Image** tool, insert images from a local file or a remote URL. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-N8SCIFW0.png) Images can also be pasted into the form and encoded as **Base64**. 1. Once the image is inserted into the template, open **Sheet Options** and select the **Combining** tab to embed the data into the JobInfo MailBodyHTML. 2. Click the Sheet Embedding tab, click the **JobInfo** radio button, and ensure **MailBodyHTML** is selected in the dropdown menu 3. Click **Apply** and then **OK**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-OOHX8ATP.png) ### Script/JobInfo The following is a script example applied on an Enter modifier on a Mail Output module: ```plaintext var x= "html>

Email Test

" setJobInfo("MailBodyHTML",x) ``` The email produced using the above script: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-7LJ33ZD9.png)