---
schema_version: "1"
id: f21279d99cb1894459d6b4a4893a8bcfba63df2b84fffdccc987cb500928164b
title: Create HTML Code for Your Email Campaign
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_email_campaign_html_code.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_email_campaign_html_code.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4d3f6c1f02f4b5139a914395137adf263ec87063a787dee65dfb89b025468d08
description: Generate HTML code that you can use to deliver personalized recommendations to campaign recipients. After generating the HTML code, insert it into the Open Time Email campaign in your email marketing service.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Create HTML Code for Your Email Campaign

Generate HTML code that you can use to deliver personalized recommendations to campaign recipients. After generating the HTML code, insert it into the Open Time Email campaign in your email marketing service.

### Required Editions

Create an Open Time Email campaign.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d30426e41">Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d30426e41 ">To create HTML code:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d30426e41 ">A role with Campaign Create/Edit permissions</td>

          </tr>
        </tbody>
      </table>

1. In the **Channels & Campaigns** section of the main navigation, select **Email** | **Open Time Campaigns.**
2. Select the email campaign and click **Publish & Generate HTML**.
3. Copy the HTML code and paste it into the email template in your email system.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_note.png)
    
    Note Depending on your email marketing service, you might need only the URLs of your Open Time Email campaign rather than the HTML code that Personalization generates.
4. When your email template is complete, test it in your email marketing service with the same users you used to simulate email content. Make sure that your test group contains representative profiles similar to your opt-in list so you can realistically simulate the results.