function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eran VizelEran Vizel 

Visualforce email template JPG attachment

Hi,

How to I attch a VF email template attachment that will be received as a JPG?
Tried this and the received file is corrupt.

<messaging:attachment filename="SpecialistAutomationIcon.jpg" >

<apex:image value="url('{!$Resource.Specialist_Automation_Cert_Icon}'"/>

</messaging:attachment>

Please advise,

Thanks,
Eran