dynamicly embeding images in emails

dynamicly embeding images in emails

Hi,

I have a requirement to send mass emails to a group of leads where each email contains (among others.. ) a unique image per lead(say, the leads picture). My plan was to setup an external server, that can dynamically load images according to the url's parameters. My problem is that the url should contain some Zoho CRM fields (for the dynamic part..) and what I found out is that the fields are being escaped (html code) and the result is that the actual mail doesn't contain the values but the distorted Zoho CRM field filed.

For example:

The input url is:
http://myapp/imagehandler?id=${Leads.AccountId}


The expected result:
http://myapp/imagehandler/ImageService?id=3
 

The actual result in the mail:
http://
myapp/imagehandlerid=$%7BLeads.UPAccountId%7D
   
Any ideas what am I doing wrong? Is there a better way to achieve this goal?

Thanks,
Alex