ColdFusion
Embed images in emails using ColdFusion
Posts  1 - 1  of  1
elizas
Explanation for the Example:
file (CFMAILPARAM attribute) - This attaches a file to the email. This should be an absolute path where the actual file resides.
contentid (CFMAILPARAM attribute) - An unique identifier for the attached file. This is normally used to identify the file in the mail body that references the file content.

In the above example, we are using the “contentid” we provided in CFMAILPARAM tag as IMG tag cid which is the content id. Instead of providing the content id if we provide the path to the image file, then the image is sent as an attachment. Since we have used the content id, instead of being rendered as attachment, the content of the file with the id provided gets embedded into the email content. The CFMAILPARAM tag can also be used to include an image from an external link.
Advantage: It will not give an impression like phishing attack or spam email.
Disadvantage: It might take little more time to load the body of an email as we might have heavy images embedded.


http://www.mindfiresolutions.com/Embed-images-in-emails-using-ColdFusion-595.php
Save
Cancel
Reply
 
x
OK