Video Library

How to fix merge codes that are not working

If your merge codes no longer work, there is a good chance our HTML editor inserted code within the merge code, which needs to be removed.

Fixing Merge Codes That Don’t Work in Email Templates

If you’ve noticed that your merge codes (for example, {guest_first_name}) are not being replaced correctly in your emails, the issue is often caused by extra HTML added by the built-in editor. This extra code can interfere with how merge codes are read and processed.


Why This Happens

The editor automatically inserts additional HTML tags (especially when changing fonts, colors, or formatting). These tags can accidentally appear inside or around merge codes — breaking their structure and preventing them from being recognized.

For example, if you check the HTML source of your template, you might see something like this:

Dear <span style="font-family: Arial;">{guest_first_name</span>}

This is invalid because the merge code has been split apart by HTML tags. The system won’t recognize it correctly.


How to Fix the Problem

  1. Open the problematic email template under Website ? Email Templates.
  2. Click Edit on the affected template.
  3. Highlight all the text in the editor (press Ctrl + A).
  4. Copy it (press Ctrl + C).
  5. Open Notepad (or any plain-text editor).
  6. Paste the content into Notepad.
    This step removes all extra formatting and hidden HTML.
  7. Now, copy the cleaned text from Notepad and paste it back into the editor in ReservationKey.
  8. Click Save Changes.

Check the Source Code

After pasting back, click Source in the editor to verify your merge codes look clean and complete. For example, this is correct:

Dear {guest_first_name},

Make sure there’s no HTML code between or inside the curly braces.


Apply Changes to Pending Messages

When saving, ensure you check the box labeled:

“Update any unsent messages to now use this template.”

This updates any queued emails that were still using the broken version of your template.


Prevention Tips


Summary

Following these steps should restore your merge codes and prevent similar issues in the future.