Examples
Newsletter Campaign
Monitor when open rates exceed expectations:
{
"fromAddress": "[email protected]",
"fromName": "Company Newsletter",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "John Subscriber"
}
],
"subject": "Weekly Newsletter - Special Offers Inside!",
"htmlBody": "<h1>This Week's Deals</h1><p>Check out our latest offers...</p><p><a href=\"{{{unsubscribe_link}}}\">Unsubscribe</a></p>",
"textBody": "This Week's Deals - Check out our latest offers...",
"customerReference": "newsletter-week-42"
}
Product Launch Announcement
Launch announcement with product images:
{
"fromAddress": "[email protected]",
"fromName": "Company Marketing",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "Valued Customer"
}
],
"subject": "Introducing Our New Product Line!",
"htmlBody": "<h1>New Product Launch</h1><p>We're excited to announce...</p><img src=\"cid:product_image\"/>",
"textBody": "New Product Launch - We're excited to announce...",
"attachments": [
{
"fileName": "product_catalog.pdf",
"data": "JVBERi0xLjQKJcfsj6eUKCAg...",
"contentType": "application/pdf"
},
{
"fileName": "product_image.jpg",
"data": "/9j/4AAQSkZJRgABAQEAYABgAAD...",
"contentType": "image/jpeg",
"contentId": "product_image"
}
],
"customerReference": "product-launch-2024"
}
Promotional Campaign with Multiple Recipients
Campaign with CC for tracking:
{
"fromAddress": "[email protected]",
"fromName": "Store Promotions",
"toAddresses": [
{
"toAddress": "[email protected]",
"toName": "Customer One"
},
{
"toAddress": "[email protected]",
"toName": "Customer Two"
}
],
"ccs": [
{
"emailAddress": "[email protected]"
}
],
"subject": "Flash Sale - 50% Off Everything!",
"htmlBody": "<h1>Flash Sale Alert!</h1><p>Everything in our store is 50% off for the next 24 hours!</p><p>Use code: FLASH50</p>",
"textBody": "Flash Sale Alert! Everything in our store is 50% off for the next 24 hours! Use code: FLASH50",
"customerReference": "flash-sale-march-2024"
}
Updated 2 days ago