+ Start a Discussion

How can I attach files from Notes And Attachments via VF EmailTemplate (using Email Alert)

Hi !

I have email alert on custom object, so, i have VF Email Template (VFET) for that 


Record of custom object have some atachemts - i want put it to email.



Now i can to attach only pictures. VFET have that:

<messaging:attachment renderas="pdf" filename="{!relatedTo.Name}">  

and component with that:

<apex:image url="/servlet/servlet.FileDownload?file={!doc}"/>


But it works for pictiures only, rendered as pdf.

How with docs and pdf from related Notes & Attachments ?








Did you find a slution for that issue?


i have the same problem



Thank you !






No,  unfortunately...