For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Fields

Create and manage custom fields to store additional contact information for personalization

Custom fields allow you to store additional information about your contacts beyond their email address. Use these fields to personalize campaigns and create targeted segments.

What are Custom Fields? Custom fields are variables that store specific information about your contacts, such as:

  • Personal details (first name, last name, birthday)

  • Geographic information (city, country, timezone)

  • Preferences (product interests, communication frequency)

  • Custom data specific to your business

Default Fields

Every contact in Mailtrap has these default fields:

Primary identifier for contacts

  • Automatically created

  • Cannot be deleted or modified

  • Must be unique across your account

  • Used for sending campaigns

Tracks consent and engagement

  • Subscribed

  • Unsubscribed

  • Pending (awaiting confirmation)

Creating Custom Fields

spinner
1

Navigate to Fields

Go to Contacts → Fields in your Mailtrap dashboard.

2

Click Create Field

Select the Create Field button to open the field creation form

3

Configure Field Properties

Fill in the field details:

  • Field Name: Display name (e.g., "First Name")

  • Type: Select the appropriate data type

  • Merge Tag: Variable for personalization (e.g., first_name)

4

Save Your Field

Click Create to add the field to your account.

Field types

Choose the appropriate field type based on your data:

For short text values

  • Names, titles, company names

  • Short descriptions

  • Single-line inputs

  • Maximum 255 characters

Example: first_name, company, job_title

For numeric values

  • Age, scores, counts

  • Integers and decimals

  • Mathematical operations in segments

Example: age, purchase_count, loyalty_points

For date and time values

  • Birthdays, anniversaries

  • Registration dates

  • Last activity timestamps

  • Format: YYYY-MM-DD

Example: birthday, registration_date, last_purchase

For yes/no values

  • Preferences and flags

  • Subscription statuses

  • Feature toggles

  • Values: true/false

Example: is_vip, newsletter_subscriber, has_purchased

For predefined options

  • Categories, segments

  • Multiple choice values

  • Dropdown selections

Example: product_interest, customer_tier, preferred_language

Using Fields in Campaigns

Personalization with Merge Tags

Use merge tags to personalize your email content:

Best practices

Technical limitations

  • Field name length: Up to 50 characters

  • Merge tag length: Up to 50 characters

  • Text field value: Up to 255 characters

  • Cannot delete fields with existing data

  • Each account can have up to 40 Fields.

Last updated

Was this helpful?