In Shared Email Templates, you can insert pictures from OneDrive, SharePoint, and URLs, add the <img> tag directly to the HTML code, or create an Outlook draft, insert an image into it, and use this draft as a template.
Click the button below to open or download a quick Insert Pictures cheat sheet:
Before adding images in Shared Email Templates, read the notes below.
To insert an image from OneDrive with the ~%InsertPicture macro, open your template in the Edit mode and click the Insert macro icon:
Into the Search box, type "insert picture" to find the desired option. Double-click Insert Picture from OneDrive or select it and click Select:
If single sign-on is not enabled when you select Insert Picture from OneDrive, the add-in will ask you to log in to your OneDrive account.
Select the image that is going to be inserted and click Select. Also, you can Upload an image from your local storage to OneDrive and then insert it.
You can set the size of the image (in pixels), add Link URL and Link title, or leave these fields empty and click Insert:
If you don't enter the width and height, the image will be inserted in its original dimensions.
In the text of your template, you'll see the macro placeholder:
To add an image from SharePoint, open your template in the Edit mode and click the Insert macro icon:
Into the Search box, type "insert picture" to look for the option you need. Double-click Insert Picture from SharePoint or select it and click Select:
If single sign-on is not enabled when you select Insert Picture from SharePoint, the add-in will ask you to log in to your SharePoint account.
Select the image of interest and click Select. Also, you can Upload an image from your local storage to SharePoint and then insert it.
You'll see the Insert picture dialog:
You can set the size of the image (in pixels), fill in the Link URL and Link title fields. If you don't enter the width and height, the image will be inserted in its original dimensions.
When you're done, click Insert.
The macro placeholder will appear in your template:
To insert an image from a URL, click the Insert macro icon:
Into the Search box, type "insert picture" to find the necessary option. Double-click Insert Picture from URL or select it and click Select:
Enter the address of the picture to be inserted. If necessary, set the size of the picture, add Link URL and Link title. Then click Insert:
If you don't enter the width and height, the image will be inserted in its original dimensions.
When using Insert Picture from URL, don't try to enter links to images stored in OneDrive or SharePoint into the Picture address field of the Insert Picture from URL dialog window. For example, you might want to open a picture in a browser, copy its address from the address bar, and try to paste it into the Picture address field in the Insert Picture from URL dialog window. This won't work. Also, if you copy a link to an image while sharing it in OneDrive and paste it into the Picture address field, it won't work either.
To insert a picture into a template, you can edit the template HTML code and use the <img> tag there.
Create a new template or start editing an existing one and click the View HTML icon:
Enter the <img> tag along with a URL and the size of an image. For example, the image that is going to be inserted, say, logo.webp, is at https://cdn.company.com/, and you want it to be 150px wide and 80px high. In this case, the HTML code will be as follows:
<img src="https://cdn.company.com/logo.webp" width="150" height="80">
If you want to insert the image in its original dimensions, you can omit to specify the width and height, and the HTML code will look like this:
<img src="https://cdn.company.com/logo.webp">
<img src="https://cdn.company.com/logo.webp" width="80%" height="80%">
When HTML is ready, click OK:
The image will be displayed in your template but not downloaded and attached, so if the image gets unavailable by the URL, it won't be pasted and displayed in your email messages.
You can also insert images by using Outlook drafts as templates. In this case, you need to create a draft in Outlook, insert an image, and link the folder with this draft to Shared Email Templates. Here is our How to use Outlook drafts as templates guide.
If you've got only one OneDrive account that is the same as your Microsoft 365 Outlook account (that is indicated in Outlook File → Account information), you can take advantage of single sign-on to avoid entering or confirming your credentials each time you use the ~%InsertPicture macro to insert images from OneDrive or SharePoint.
With single sign-on, you'll accept the permissions for the app only once:
After that, all images will be inserted without any additional pop-ups.
The single sign-on feature is turned on by default. If you need to use images from different OneDrive accounts, turn single sign-on off. For this, click the three dots in the lower-right corner of the add-in pane and select Profile:
Click Edit Account:
Here is the checkbox you need:
You might see an error message in red below the Use single sign-on (SSO) where possible checkbox. In most cases, the message is related to one of the points mentioned above.
However, if you see the 'SSO is not supported in your current add-in version' message, most probably, you simply need to wait a bit till the app is updated in your account. The speed of this process depends on Microsoft and we can't influence it.
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!