I'm trying to attach a file to an email templates.
This email template will be used in a workflow, so what I need is to send it everytime a condition is met in a opportunity. The file I need to attach is one of the file that is related with the opportunity, so it will be different in every email.
I just achieved to send always the same document (static). I also tried VF templates, but still is not working.
This is the code used in the VF template:
Congratulations! This is your new Visualforce Email Template
Have anyone do it before?
Thank you so much for your time.