¶¶Òõ

Skip to main content

Process of Editing HTML Email Template

¶¶ÒõCloud Portal → 4-Dot Menu → Data Management → Ordering Settings → Settings → Digital Notifications → Notification Templates

For details about general configuration of email templates, see Notification Templates.

To edit an HTML email template:

  1. From the Notification Template List homepage, select the template.

  2. From the Edit page, locate the HTML section.

  3. From the HTML section, copy the HTML code and paste it into to the HTML area on the .

    • The rendering of the HTML code in the right area of allows for real-time previewing of the HTML email template as it is being modified in the HTML area.

  4. In the HTML area on the , use the search function (usually Ctrl + F or Command + F) within the text editor to find and modify the specific elements.

    Nota

    Be careful not to disrupt HTML tags when making changes, as it may result in abnormal page display or rendering errors.

    Key elements that might require adjustments include:

    • Company logo area

      <div style='position: relative; width: 100%'>
                    <div
                      style='
                        display: block;
                        overflow: hidden;
                        position: relative;
                        width: 100%;
                        height: 115px;
                        line-height: 110px;
                        background: #ffffff;
                        border-bottom: 5px solid #9bc769;
                        box-sizing: border-box;
                        text-align: center;
                      '
                    >
      • display: Determines how the element is displayed in the document. It can be set to values like block, inline, none, etc.

      • overflow: Specifies how the content should behave if it overflows the box. Values include visible, hidden, scroll, auto, etc.

      • position: Establishes the positioning method for the element. It can be static, relative, absolute, fixed, or sticky.

      • width: Sets the width of the element.

      • height: Determines the height of the element.

      • line-height: Defines the height of each line of text within the element.

      • background: Specifies the background color for the element. The color is represented using a hexadecimal code.

      • border-bottom: Determines the style, width, and color of the bottom border of the element.

      • box-sizing: Defines how the width and height of the element are calculated, including padding and borders.

      • text-align: Aligns the text content within the element. It can be left, right, center, or justify.

      Nota

      For information about how to change the company logo, see Company Logo at Company Preferences or Company Logo at Site Preferences. The company logo set at the site preferences overrides that set at the company preferences.

    • Division between the company logo area and the actual content of the email template

      &±ô³Ù;»å¾±±¹Ìý²õ³Ù²â±ô±ð='³ó±ð¾±²µ³ó³Ù:Ìý30±è³æ;Ìý·É¾±»å³Ù³ó:Ìý100%;Ìý²ú²¹³¦°ì²µ°ù´Ç³Ü²Ô»å:Ìý#00467´Ú'&²µ³Ù;&±ô³Ù;/»å¾±±¹&²µ³Ù;
      • height: Specifies the height of the element.

      • width: Defines the width of the element.

      • background: Sets the background color for the element. The color is represented using a hexadecimal code.

    • Button and text displayed on the button

      <span
                          style='
                            display: block;
                            background: #027dc1;
                            line-height: 50px;
                            text-align: center;
                          '
                          >Text displayed on the button</span
                        >
      • display: Determines how the element is displayed in the document. It can be set to values like block, inline, none, etc.

      • background: Specifies the background color for the element. The color is represented using a hexadecimal code.

      • line-height: Defines the height of each line of text within the element.

      • text-align: Aligns the text content within the element. It can be left, right, center, or justify.

    • Text

      <span style='color: #000000'>
                        Text content
                      </span>

      The text content is outside the <> brackets. The 'color' attribute preceding this text determines its color. The color is represented using a hexadecimal code.

    • Variable

      &±ô³Ù;²ú&²µ³Ù;¶Ù±ð²¹°ùÌýµ÷µ÷³Ü²õ±ð°ù³å²Ô²¹³¾±ð°¨°¨,&±ô³Ù;/²ú&²µ³Ù;

      The content within the double curly braces represents a variable, in this case, "user_name". When the page is rendered, this variable will dynamically display the actual username.

    • Link

      <a
                        style='
                          font-size: 16px;
                          color: #027dc1;
                          text-decoration: underline;
                          cursor: pointer;
                        '
                        href='mailto:{{representative_emails}}'
                        >{{representative_email}}</a
                      >
      • "<a></a>" is the anchor tag used to create a hyperlink.

      • "font-size" sets the text size.

      • "color" defines the color of the text.

      • "text-decoration: underline" underlines the text to indicate it's a link.

      • "cursor: pointer" sets the cursor to change into a pointer when hovering over the link.

      • "href='mailto:{{representative_emails}}'" specifies the destination URL. In this case, it uses the mailto: protocol. The actual email address should be placed directly after the mailto: protocol.

      • ">{{representative_email}}</a>" contains the text displayed for the hyperlink.

  5. Save the edited HTML email template within Postdrop once satisfied with the modifications

  6. Copy the modified HTML email template to HTML section on the Edit page.

    Sugerencia

    ³§±ð±ô±ð³¦³ÙÌýUse Default Template to undo all changes and revert the email template to its default values.