Explanation:
Custom Fields for Personalization:- Each recipient in the to array has a customFields map.
- These fields are used to dynamically render the email content.
- Example:
{{firstName}},{{discountCode}}, and{{status}}in the subject, htmlBody, and textBody are replaced with the respective values from customFields.
Output Example:
For gavin@hooli.com: Subject: Hello, Gavin! Your Special Offer Awaits Hi Gavin, Your discount code is BELSON240. Your account status is VIP.For erlich@piedpier.com: Subject: Hello, Erlich! Your Special Offer Awaits Hi Erlich, Your discount code is BACHMAN10. Your account status is Incubator.
unsubscribe is a reserved custom field name. You can’t use it as a custom field name.