How to Personalize Emails with Variable Mapping

Personalizing your emails makes them more engaging and relevant. With MSG91, you can easily use Variable Mapping to send customized emails to each recipient. Follow the steps below to get started:

Send Emails Seamlessly


Once your domain and template are approved, you're all set to start sending emails.

MSG91 allows you to send emails directly from the panel without any coding.


How to Send an Email via MSG91 Panel

  1. Navigate to the Email Section
    Go to Email → Send Email in your MSG91 dashboard.

  2. Choose Your Sending Method

    • Manually Add Email IDs – Use this option to test or send a one-time email.

    • Select Segmento – Choose a pre-saved audience segment.

    • Upload CSV – For sending emails to bulk lists.

    If Selecting “Manually Add Email IDs”

    • Enter the recipient email(s) or your team’s email ID for testing.

    • Select the Email Template you want to use.

    • After Selecting, you can see the exact number of variables (e.g., 2) when you click Preview.

    • Next Map Template Variables

    • In the Variable Mapping section, provide the variable values in double quotes.
      Example: "MSG91", "1234"

    • Next Set Sender Details

    • Choose the Domain, From Name, and From Email ID from dropdown.

    • Click Review & Send to launch your email campaign.

If Selecting “Segmento”

  1. Pick a Phonebook and saved Segment (your pre-defined audience group).

  2. Choose the Email Template you want to send.

  3. Map the variable value based on the template:

    • $ → to select a column from your Segment data (like Name, City, Mobile, etc.)

    • # → to add a custom value (fixed for all)


Example 1 – Using Segment fields with $

Your Segment has fields: Name, City

Template:
Hi {{Name}}, welcome to MSG91 from {{City}}!

Mapping:

  • {{Name}} → $Name

  • {{City}} → $City

Result:
Hi Karan, welcome to MSG91 from Indore!

Example 2 – Mixing Segment field and custom value #

Your Segment has fields: Name, Email

Template:
Hi {{Name}}, your OTP is {{OTP}}.

Mapping:

  • {{Name}} → $Name (from Segment field)

  • {{OTP}} → #1234 (fixed value)

Result:
Hi Bhaskar, your OTP is 1234.
Hi Bison, your OTP is 1234.

Example 3 – Full custom values with #

Even if your Segment does not have matching fields, you can still send fixed values.

Template:
Hello {{User}}, your subscription is valid till {{Date}}.

Mapping:

  • {{User}} → #Customer

  • {{Date}} → #30-Sep-2025

Result:
Hello Customer, your subscription is valid till 30-Sep-2025.


Tip: $ pulls data from your Segment fields, while # lets you enter a fixed/custom value.

If Uploading “CSV”

  • Upload your CSV file containing recipient details (e.g., Name, Email, City).

  • Choose the Email Template you want to send.

  • Map the variable value based on the template:

    • $ → to select a column from your CSV.

    • # → to add a custom value (fixed for all).


Example 1 – Personalized Renewal Reminder with CSV

CSV columns: Name, ExpiryDate

Template:
Hello {{Name}}, your subscription will expire on {{ExpiryDate}}. Please renew to continue services.

Mapping:

  • {{Name}} → $Name

  • {{ExpiryDate}} → $ExpiryDate

Result:
Hello Shruti, your subscription will expire on 10-Sep-2025. Please renew to continue services.

Ideal for Targeted campaigns, announcements, and test runs — no developer required!