This project creates personalized images for email campaigns by dynamically generating award certificates with recipient-specific details (name, title, photo, etc.). The system uses a Netlify serverless function to combine a background template with dynamic text and images, producing unique JPEGs for each recipient.
- Dynamic URL Structure:
The generator uses a URL with query parameters to customize each image (e.g.,https://your-site.netlify.app/.netlify/functions/generate-image?first=John&last=Doe&recognition=Top%20Performer&photo=URL). - Image Generation:
When the URL is accessed, the serverless function overlays the recipient’s details (name, photo, award text) onto a predefined template and returns a JPEG. - Integration:
Use the URL in Outlook Mail Merge or Gmail/GMail extensions to embed personalized images in emails.
https://your-site.netlify.app/.netlify/functions/generate-image?
first=[First_Name]&
last=[Last_Name]&
recognition=[Award_Text]&
photo=[Profile_Picture_URL]
- Deploy the Netlify function (included in
/netlify/functions/). - Store your background template in
/assets/. - Call the URL in emails with recipient-specific parameters.
Example URL:
https://your-site.netlify.app/.netlify/functions/generate-image?first=Jane&last=Smith&photo=...