[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-658696-105":53,"doc-detail-658696-en":127,"doc-similar-658696":158},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","add-custom-html-code-to-an-email-template-version-8-instructions","Add custom HTML code to an email template - Version 8 - instructions","","This guide explains how to implement custom HTML within a Creatio email template using the HTML element (Smart block). It covers adding and removing user-defined macros inside the element code, including how Creatio validates custom code and shows errors or warnings in a validation panel. The documentation details macro types—New String, New Text, New Picture, and New Color—and provides step-by-step setup procedures for selecting HTML sections, creating macros, naming them in the Macro constructor, saving changes, and deleting macro fields.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":41,"@type":70,"position":76},"https://docshare.wps.com/template/letters/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/add-custom-html-code-to-an-email-template-version-8-instructions/658696/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/add-custom-html-code-to-an-email-template-version-8-instructions/658696.png","ImageObject",442,249,{"name":88,"@type":89},"DoDO","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-12-02","2026-10-26",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What is the HTML element in an email template used for?","Question",{"text":109,"@type":110},"The HTML element (Smart block) enables inserting custom HTML code into the template and enriching it with reusable user-defined macros. It can also apply custom styles and import HTML templates from third-party software.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does Creatio handle macros when sending an email?",{"text":114,"@type":110},"When sending an email, Creatio replaces each user-defined macro in the HTML element with the corresponding values specified in the HTML setup area.",{"name":116,"@type":107,"acceptedAnswer":117},"What macro types are supported for the HTML element?",{"text":118,"@type":110},"Supported macro types include New String (single-line), New Text (multiline, whitespace pre-formatted), New Picture (image source), and New Color (color picker).","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},658696,1793052814,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":40,"category_name":41,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":136,"language":137,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":61,"update_tm":126,"read_time":79,"preview_page_count":79,"preview_urls":141},962093270745,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","HTML code  \nAdd custom HTML code to an email template  \nVersion 8 .0  \nThis documentation is provided under restrictions on use and are protected by intellectual property laws . Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means . Reverse engineering, disassembly, or decompilation of this documentation, unless required by law for interoperability, is prohibited.  \nThe information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors , please report them to us in writing.  \n© 2023 Creatio . All rights reserved.  \nTable of Contents | 3  \nTable of Contents  \nAdd custom HTML code to an email template 4  \nAdding a macro 4  \nDeleting a macro 6  \nMacro types 6  \n© 2023 Creatio . All rights reserved.  \nAdd custom HTML code to an email template | 4  \nAdd custom HTML code to an email template  \nPRODUCTS:  MARKETING  \nThe [ HTML ], aka “Smart block”, element (Fig. 1) enables implementing custom HTML code into your template and enriching it with reusable user-defined macros .  \nFig. 1 Adding an [ HTML ] element to a template  \nUse the [ HTML ] element to set custom styles such as elliptical rounding of corners , non-uniform borders , multiple background images , etc . You can also use this element to import templates designed in third-party software. To do this , add all the HTML code of such a template to the [ HTML ] element.  \nNote. The [ HTML ] element is intended for use by HTML-savvy users who are familiar with web design and can code their custom designs in HTML.  \nCreatio will check your custom code for errors before adding it to the template. You can review the errors and warnings in the validation panel. Warnings do not affect the validation while saving. To save the [ HTML] element to the template, fix all detected errors .  \nAdding a macro  \nYou can add custom macros to the HTML code of the [ HTML ] element. When sending an email, Creatio replaces the user-defined macros with the corresponding values specified in the [ HTML ] setup area. The [ HTML ]  \n© 2023 Creatio . All rights reserved.  \nAdd custom HTML code to an email template | 5  \nelement enables marking variables (text, font color or images) in the element code and set up custom macros for editing.  \nWhen the user creates a macro , the Content Designer generates a corresponding field and maps the value of the field to the macro . If the macro is reused in the same [ HTML ] element, the value of the field will be mapped to every instance of the macro .  \nThe following types of macros are available:  \n New String – a single-line macro .  Read more >>>  \n New Text – a multiline macro .  Read more >>>  \n New Picture – an image source macro .  Read more >>>  \n New Color – a color picker macro .  Read more >>>  \n The setup procedure is as follows:  \n1. Select an [ HTML ] element on the template and click [ Edit HTML ] .  \n2. Select the part of the code that you want to replace with a macro .  \n3. Right-click the selected code. A macro context menu will appear .  \nNote. Right-clicking when nothing is selected in the editor does not produce a macro context menu.  \n4. Select the type of macro in the menu. You can create a new macro or add another instance of a previously created macro to the code. If macros have already been added to the [ HTML ] element, they will also be displayed in the context menu.  \n5. Specify the title of the currently selected macro in the [ Macro constructor ] area on the right (Fig. 2), so that you can identify this macro later .  \nFig. 2 Editing the title of a macro  \n© 2023 Creatio . All rights reserved.  \nAdd custom HTML code to an email template | 6  \n6. Click [ Save ] to apply changes .  \nAs a result, a new field will be available in the [ HTML ] setup area on the right (Fig. 3) . Changing the ","cbCaibv4VQEzBUuL","https://ap.wps.com/l/cbCaibv4VQEzBUuL","pdf",455277,10,"English","# Add custom HTML code to an email template\n## Adding a macro\n## Deleting a macro\n## Macro types","[{\"question\":\"What is the HTML element in an email template used for?\",\"answer\":\"The HTML element (Smart block) enables inserting custom HTML code into the template and enriching it with reusable user-defined macros. It can also apply custom styles and import HTML templates from third-party software.\"},{\"question\":\"How does Creatio handle macros when sending an email?\",\"answer\":\"When sending an email, Creatio replaces each user-defined macro in the HTML element with the corresponding values specified in the HTML setup area.\"},{\"question\":\"What macro types are supported for the HTML element?\",\"answer\":\"Supported macro types include New String (single-line), New Text (multiline, whitespace pre-formatted), New Picture (image source), and New Color (color picker).\"}]","Add custom HTML code to an email template - Version 8 - instructions | PDF",[142,146,150,154],{"page_no":9,"url":143,"width":144,"height":145},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6e80991a5891ea418c086bcf32a71a81.webp",983,1272,{"page_no":73,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/390431732e758e91d45137d1155e314f.webp",982,1270,{"page_no":76,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a0594b6da39da8ffd0c4fa3c158812f7.webp",981,1269,{"page_no":79,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5fba765cd75af999030414dfbcfba597.webp",980,1268,{"list":159,"token":60},[160,167,173,179,185,191,197,203,210,216],{"doc_id":161,"doc_title":162,"file_type":134,"home_preview_img_url":163,"slug":164,"view_count":165,"category_name":41,"create_tm":166},658857,"Shared Email Templates for Outlook - Reply to emails faster than ever 7 - How to attach files","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976855508/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=FE7dToV7CJRkBmURLcaJzoGrjd4%3D","shared-email-templates-for-outlook-reply-to-emails-faster-than-ever-7-how-to-attach-files",9,1793054980,{"doc_id":168,"doc_title":169,"file_type":134,"home_preview_img_url":170,"slug":171,"view_count":30,"category_name":41,"create_tm":172},260997,"WordPress Developer Job Description - Contractor","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229896741647/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=wCHWfKDPBF24TbfXYXX0x8fuqmE%3D","wordpress-developer-job-description-contractor",1789348148,{"doc_id":174,"doc_title":175,"file_type":134,"home_preview_img_url":176,"slug":177,"view_count":136,"category_name":41,"create_tm":178},276764,"Electronic Manuscript Letters Template Word 2003 - Using the Template Instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229900098335/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=RF96%2BwoFqnHHmXX6DsjT0%2F4goKM%3D","electronic-manuscript-letters-template-word-2003-using-the-template-instructions",1789495228,{"doc_id":180,"doc_title":181,"file_type":134,"home_preview_img_url":182,"slug":183,"view_count":47,"category_name":41,"create_tm":184},658818,"How to Insert an HTML Email Template into Outlook - A Step-by-Step Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976853834/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=tO30vYS8Te%2BbxSzuNpZKvj4%2BF1A%3D","how-to-insert-an-html-email-template-into-outlook-a-step-by-step-guide",1793054576,{"doc_id":186,"doc_title":187,"file_type":134,"home_preview_img_url":188,"slug":189,"view_count":20,"category_name":41,"create_tm":190},354321,"Code_of_Conduct - Toolkit V2 - A Five-Step Process","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229912213168/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=icmwl7McMU9sSb%2FHRv%2B0C%2Ft2a1o%3D","code_of_conduct-toolkit-v2-a-five-step-process",1790110089,{"doc_id":192,"doc_title":193,"file_type":134,"home_preview_img_url":194,"slug":195,"view_count":8,"category_name":41,"create_tm":196},339031,"Use Klaviyo to Brand Shopify Order Confirmation Emails","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909822835/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=PtCskDsrmTsj1rLhZ8qW%2BYxxbWU%3D","use-klaviyo-to-brand-shopify-order-confirmation-emails",1790027420,{"doc_id":198,"doc_title":199,"file_type":134,"home_preview_img_url":200,"slug":201,"view_count":47,"category_name":41,"create_tm":202},658520,"Cloudera Data Visualization - Emails and Email Templates - Creating new email templates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977263961/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=L0E81PCTxMqCzD8ZsQYcvGGeLxw%3D","cloudera-data-visualization-emails-and-email-templates-creating-new-email-templates",1793050399,{"doc_id":204,"doc_title":205,"file_type":134,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":41,"create_tm":209},187685,"YOUR FIRST EMAIL MARKETING PROJECT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229879471515/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=bWhFJGxdV29iYljXN71Z9M6Ncjg%3D","your-first-email-marketing-project",28,1788384793,{"doc_id":211,"doc_title":212,"file_type":134,"home_preview_img_url":213,"slug":214,"view_count":30,"category_name":41,"create_tm":215},262430,"JavaScript Developer Job Description Template","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229897284005/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=tsR0yjqg58v3Dmwu3wwJTlrZbNQ%3D","javascript-developer-job-description-template",1789362087,{"doc_id":217,"doc_title":218,"file_type":219,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":41,"create_tm":223},173908,"How to Create an Email Template in Outlook - Save as Outlook Template (*.oft)","docx","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229875100400/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796241959&Signature=uuqkmBzNMf7DlPSQFNsDzQoJytY%3D","how-to-create-an-email-template-in-outlook-save-as-outlook-template-oft",22,1788308500]