Images
Working with Images
Images bring your emails to life and significantly improve engagement rates. Contacted makes it incredibly simple to include content images in your transactional emails—just pass image URLs in your data and reference them in your prompts.
Note: Your company branding (logos, footers, headers) is already configured in your account settings and applied automatically. This guide focuses on content-specific images like product photos, charts, and promotional banners.
How Images Work
1. Pass content image URLs in your data object
2. Reference the image keys in your prompt with specific placement instructions
3. Our AI handles sizing, positioning, and responsive design automatically
4. Your pre-configured branding wraps around the content seamlessly
Important: All image values must be provided as URL strings. Our AI automatically optimizes images for email clients.
Basic Image Usage
Simple Example
contacted.send(
subject="Welcome to Our Platform!",
prompt="Welcome email with welcome_banner as a hero image showcasing our platform",
data={
"user_name": "Sarah Johnson",
"welcome_banner": "https://yoursite.com/images/welcome-hero.jpg"
}
)What Happens:
Your branded header/logo appears automatically (from account settings)
welcome_bannerbecomes a prominent hero image in the email bodyYour branded footer appears automatically
AI handles responsive sizing and email client compatibility
Content Image Types & Use Cases
1. Hero/Banner Images
Use for: Main visual content, announcements, featured content
2. Product Images
Use for: Product showcases, order confirmations, catalogs
3. Data Visualization Images
Use for: Charts, graphs, reports, analytics
4. Content & Marketing Images
Use for: Event promotions, marketing campaigns, feature highlights
5. Personal & Team Images
Use for: User-specific content, team introductions, personal touches
Advanced Content Image Placement
Multiple Content Images with Specific Instructions
Product Showcase with Multiple Images
Overriding Branding (Advanced)
While your branding is applied automatically, you can override specific elements when needed:
Custom Header for Special Campaigns
Event-Specific Branding
Best Practices
✅ Content Image Requirements
Supported Formats: JPG, PNG, GIF, WebP Recommended Size: 600-1200px wide for hero images, 300-600px for secondary content Max File Size: 5MB per image Hosting: Use reliable CDNs or image hosting services
🎯 Prompt Best Practices
Be Specific About Content Placement:
Describe Content Purpose:
Focus on Content Layout:
Common Content Use Cases
E-commerce Product Showcase
SaaS Feature Announcement
Troubleshooting Content Images
Common Issues
Issue: Content images not displaying
Issue: Content images too large/small in email body
Issue: Content images in wrong position
Issue: Content images clashing with brand elements
Advanced Content Techniques
Dynamic Content Generation
Use dynamic URLs for personalized content:
A/B Testing Content Images
Test different content approaches:
Seasonal Content Swapping
Automatically use seasonal content:
Summary
Content images in Contacted emails are powerful but simple:
Your branding is handled automatically from account settings
Pass content image URLs as strings in your
dataobjectReference image keys in your
promptwith specific instructionsFocus on content placement and purpose, not branding elements
Use reliable, fast-loading image hosting for content
Override branding only when needed for special campaigns
Our AI handles all the technical complexity—responsive design, email client compatibility, and optimal sizing—while seamlessly integrating your content with your pre-configured brand identity.
Ready to create visually stunning emails? Start with simple hero banners and work your way up to complex content showcases!
Last updated