How do I merge a personalized image into my email for each recipient?

How do I merge a personalized image into my email for each recipient?

How to Merge Personalized Images into Email Campaigns

In some cases, you may want to personalize the image displayed in an email based on each recipient's data—such as a custom graphic, profile photo, or offer image. Delivra offers several ways to do this, ranging from merging image paths directly to using dynamic content.

Below are three common approaches to achieve personalized image rendering in your campaigns.

Option 1: Merge a Full URL to the Hosted Image

This method allows each recipient to receive an entirely unique image based on a complete URL stored in a contact field.

Step-by-Step:

  1. Choose a Field
    Select an unused contact field to store your image URL data (e.g., Comment2).

  2. Prepare Your CSV File
    Create a file that includes:

  3. Import Your Data
    Upload the CSV to update your contact records.

  4. Insert Image into Email

    • Open your email or template in the drag-and-drop editor.

    • Add a new Image content block.

    • Click the Update Image icon under Image Details.

  5. Replace the Image Location

    • In the Image Location field, replace the default URL with your merge tag.

    • For example, if using the Comment2 field, enter: %%Comment2_%%

  6. Test the Campaign
    Use a segment that includes contacts with valid image URLs stored—otherwise the image will appear broken.

Option 2: Merge Only the Image Name

If all images are hosted in the same location and share a common URL prefix, you can store just the image file name in a contact field.

Step-by-Step:

  1. Follow steps 1–3 from Option 1.
    Store only the image name in the contact field (e.g., image1.jpg).

  2. Insert an Image Block

    • Add a new Image block in your email file.

    • Click Update Image under Image Details.

  3. Build the Image URL
    In the Image Location field, enter: https://yourdomain.com/images/%%Comment2_%%

    This merges the static path with the dynamic file name from the contact record.

  4. Test as Needed
    Again, use a segment where recipients have image names stored, or the image will not display.

Note: If you're including the .jpg or other suffix in the uploaded data, make sure not to add it again in the static path.

Option 3: Use Dynamic Content (No Merge Tags Needed)

If your goal is to show different images based on group-level data (e.g., location, job title, customer type), use Delivra’s Dynamic Content feature.

Why Use Dynamic Content?

  • Easier to manage than one-to-one personalization.

  • Rules can be based on segmentation data like region, product interest, etc.

  • No CSV import or merge fields required.

Learn More

Visit our e-Learning hub to explore how to build dynamic content blocks.

Best Practices and Tips

  • Always test your email using real data to ensure personalized images render properly.

  • Use consistent image dimensions to maintain clean layout rendering across variations.

  • Group images in the same folder if hosting them in Delivra’s Media Library to simplify path merging.

  • Fallback options are important—consider adding default images if data is missing.

If you have any questions about merging personalized images or using dynamic content, our Support team is here to help. Just email us at support@delivra.com.