Custom Fields

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.

Understanding Custom Fields

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

Creating Custom Fields

1

Navigate to Fields

Go to ContactsFields in your Mailtrap dashboard.

Contacts menu showing Fields tab
2

Click Create Field

Select the Create Field button to open the field creation form.

Create Field button in the fields interface
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)

Form to create a new contact field with name, type, and merge tag inputs
4

Save Your Field

Click Create to add the field to your account.

List of created contact fields including name and email

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

Using Fields in Campaigns

Personalization with Merge Tags

Use merge tags to personalize your email content:

Best Practices

Common Use Cases

Field Limits and Considerations

Technical Specifications

  • Maximum fields per account: Depends on your plan

  • 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

Last updated

Was this helpful?