You need to sign in to do that
Don't have an account?

Add a dynamic image to a visual force email template
Hi Guys,
I have a visual force email template and I need to add dynamic images to that template to send to a contact. Can we have the images attached to the records in the Notes and Attachments section and then run a query and insert all the required images in the email template?
Please advise.
Thanks,
I have a visual force email template and I need to add dynamic images to that template to send to a contact. Can we have the images attached to the records in the Notes and Attachments section and then run a query and insert all the required images in the email template?
Please advise.
Thanks,
This is possible. Refer your image like below on page. Let us know if it helps you.
Thanks for your reply. I place this in the <img src="URLFOR($Action.Attachment.Download, AttachmentId)" /> but the image stored as an attachment is not displayed.
any work around for this?
Thanks,
Please try below line .Please use your atachment id.
Let us know if it helps you.
To see it working ,just hardcode attachment id and then you can query it using SOQL.
Please try below code. Let us know if it helps you.