diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml index 534afd9a41620363f1d285d52f03d4e4fecb6bba..4626cae09af074fb6964219441c02baf0e11524e 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Event_send.xml @@ -104,6 +104,10 @@ for attachment in context.getAggregateValueList():\n attachment_list.append({\'mime_type\':mime_type,\n \'content\':content,\n \'name\':name})\n +\n + # Allow to embed image in HTML by setting the relative URL of the image with FCKeditor\n + attachment_url = attachment.getRelativeUrl()\n + body = body.replace(\'src="%s"\' % attachment_url, \'src="cid:%s"\' % \'\'.join([\'%s\' % ord(i) for i in name]))\n \n # Build message per destination\n mail_message = None\n @@ -206,6 +210,11 @@ if download:\n <string>mime_type</string> <string>content</string> <string>name</string> + <string>attachment_url</string> + <string>append</string> + <string>$append0</string> + <string>i</string> + <string>ord</string> <string>mail_message</string> <string>mail_template</string> <string>multipart</string> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 3fa694f2455f39f033c48543cf4f6fed6f637488..27384974685c11f34eb44981eec6c97f035971e8 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -437 \ No newline at end of file +439 \ No newline at end of file