Salesforce lets you create a Public Link for any file in the Files tab, generating a web-accessible URL anyone can open without logging in. This is commonly used to embed an image hosted in Salesforce directly into an email template — without it, images referenced by an internal file URL will appear broken to email recipients.
This solution explains how to create a Public Link for a file in Salesforce so it can be accessed without login — for example, to fix broken images in emails that reference a file hosted in Salesforce.
Make sure Content Delivery is enabled in your org. Content Delivery is the underlying feature that generates a publicly accessible, unauthenticated URL for a file — without it, the Public Link option won't work as expected.
Use the copied image address in your email template. For example:
<img src="Image Address"/>
This ensures that the image is hosted online and can be displayed correctly to recipients, instead of showing as a broken image link.
Content Delivery is the feature that generates the public, unauthenticated URL for a file. Without it enabled in your org, the Public Link option won't function as expected.
Yes — the same steps work for any file type in the Files tab. This article focuses on the common use case of embedding an image in an email template, but the Public Link feature isn't limited to images.
003876254

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.