When testing email templates that have attachments and sending emails, admins may notice that attachments are replaced with text files named Replaced AttachmentX.txt where X is the number of attachments in the email. Ie, if the email has 3 attachments, they will be renamed Attachment1.txt, Attachment2.txt, Attachmen3.txt,
Additionally, the body of the attachment will read:
Because an admin sent this email from Salesforce on your behalf, we replaced file <filename.ext> with this text file.
The original attachments in the template are not delivered.
This behavior occurs when a Salesforce administrator logs into the org as someone else and sends emails with attachments.
The behavior is one of the security feature that prevents users logged in as other users from sending or downloading files, whether it's attachments, log files, etc. It is not restricted to email templates and it is expected behavior.
000383121

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.