You need to sign in to do that
Don't have an account?
Phuc Nguyen 18
Dynamically add attachment to SF email template
Hello All,
Currently I am attaching a PDF that is dynamically generated and atatching it to an email. All done via controller.
The email itself has become more complicated and the users want to be able to update the email as needed so I need to utilize a SF email template instead of my email controller. Is this possible? Use SF email tempalte and dynamically attach a file? This file is not attched to the record. I am currently rendering it as a pdf and attaching it before I send.
Thank you,
P
Currently I am attaching a PDF that is dynamically generated and atatching it to an email. All done via controller.
The email itself has become more complicated and the users want to be able to update the email as needed so I need to utilize a SF email template instead of my email controller. Is this possible? Use SF email tempalte and dynamically attach a file? This file is not attched to the record. I am currently rendering it as a pdf and attaching it before I send.
Thank you,
P
Try Visualforce Email Templates, it can provide you ability to attachment files using components. However, it will also require to create Email template itself using Html/Visualforce code. Checkout this link (https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_attachments.htm) .
Thanks
All Answers
Try Visualforce Email Templates, it can provide you ability to attachment files using components. However, it will also require to create Email template itself using Html/Visualforce code. Checkout this link (https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_attachments.htm) .
Thanks
thank you,
P