Mailchimp Transactional Email To Mailtrap:
A Migration Guide
This guide highlights how to migrate seamlessly from Mailchimp Transactional Email to Mailtrap, including significant differences, terminology comparisons, SMTP and API Configurations, and other tech specifications needed for the effortless switch.
Key Differences Between Mailchimp and Mailtrap
- Mailtrap is a standalone product. Mailchimp Transactional Email, however, is an add-on that’s fully available if you’re on Mailchimp’s Standard or Premium plans.
- Mailchimp offers a demo to test out the transactional email service, and it doesn’t renew after you hit the limit of 500 outbound emails. Mailtrap has a free forever plan of 1000 emails a month where limitations renew month-to-month. Note that with Mailchimp Transactional Email, you can send emails to email address on your verified domain only.
- Mailtrap offers Bulk Stream (within the same plan), allowing you to send emails to many recipients simultaneously (newsletters, product updates, marketing promotions, etc.).
- Mailtrap supports and requires automatic validation of DMARC (together with SPF and DKIM).
- Mailtrap APIs accept and return JSON only. They don’t return API responses in XML and YAML formats.
- Mailtrap offers Email Testing. This is an email sandbox for inspecting HTML/CSS, spam scores, etc., and debugging emails in staging, dev, and QA environments before sending them to recipients.
- Mailtrap does not allow you to automatically generate HTML content from Text email parts and vice versa. The content type has to be specified at the time of sending an email or creating a template.
Terminology comparison
- User Management
- Templates
- Suppressions
- Email Categories
- Webhooks
- Headers
- X-MT-Custom-Variables
- Users
- Templates
- Rejection Blacklist
- Tags
- Webhooks
- Headers
- X-MC-Metadata
General step-by-step migration flow
-
After signing up for Mailtrap, select the Sending Domains menu. Add your domain and proceed to verify it. For more details, see our Getting Started Guide.
-
If you choose SMTP service, switch the sending settings as per the credentials Mailtrap provides. See the info under the SMTP header below.
-
Should you select API integration, check our libraries and API documentation.
-
Export your contacts list from Mailchimp as CSV and import them to Mailtrap. Check our step-by-step guide.
Need some help?
Contact our support and our tech experts will help you with it.
-
You can also import your email templates as HTML or create new ones using an HTML or drag-and-drop template builder. For more information, go to the Email Templates guide.
-
If you plan to send more than 200K emails a month, contacting Mailtrap support is highly recommended. They will help you through the process, assign a dedicated IP, and check if everything is set up correctly.
Mailtrap Tip
Use ActionMailer Balancer Ruby gem to proportionally distribute the email sending load between two different sending services (e.g. 70% Mailchimp and 30% Mailtrap) to mitigate the sending risks.
Getting started
To start sending emails with Mailtrap, you only need to create an account and verify your domain. Domain setup and verification are done from the Sending Domains menu. Read this article to learn more about that process.
Domain verification
- Once your domain is verified using the provided DNS records, it undergoes an automatic Compliance Check. This process usually takes from a couple of minutes to several hours. You can send emails only after the Compliance Check is fully passed and you see the verified status next to your domain.
- Set unsubscribe options with Mailtrap and import your suppression lists from Mailchimp (as CSV). Also, remember to import your email list and HTML templates into Mailtrap.
- Optionally, create webhooks to receive information about bounces, spam complaints, opens, clicks, and other events.
- Enable open and click tracking to understand how customers interact with your emails.
Sending with Mailtrap SMTP
SMTP Endpoints
Mailchimp Transactional Email |
|
live.smtp.mailtrap.io bulk.smtp.mailtrap.io |
smtp.mandrillapp.com |
SMTP Ports
Port | Function | Mailtrap support | Mailchimp support |
587 | Recommended for encrypted TLS SMTP connection. | ||
25 | May be problematic due to blocking by some mailbox providers to avoid abuse. | ||
2525 | For unencrypted/TLS |
SMTP Configuration
Go to Sending Domains and click the verified domain you want to send emails from. Go to the Integration tab and click Integrate under Transactional or Bulk Stream, depending on the type of emails you’d like to send.
Copy and paste the credentials (for the stream you chose) into your app or project, and you’ll be ready to start sending emails. Read more about SMTP integration here.
Note: Turning TLS on is mandatory as mentioned in the credentials.
Sending with Mailtrap API
Mailtrap API tokens
Mailtrap automatically creates a token when you add a domain. By default, the token has Domain Admin access permission. You can edit the token permissions in the API Tokens menu under Settings.
Learn more on how to manage API tokens in our guide.
API Mapping
API type | Mailtrap | Mailchimp Transactional Email |
Email sending | Send email | Messages |
User management | User management | Users |
Email Testing | Email Testing API |
API Libraries
At the moment, nine libraries are available at Mailtrap.
Programming Language | Mailtrap | Mailchimp Transactional Email |
Node.js | Node.js SDK | NodeJS |
NodeMailer (Node.js) | NodeMailer SDK | Not supported |
PHP | PHP SDK | PHP |
PHP (Laravel + Symphony) | PHP SDK | Not supported |
Ruby | Ruby SDK | Ruby |
Ruby (ActionMailer) | ActionMailer SDK | Not supported |
Python | Python SDK | Python |
Elixir | Elixir SDK | Not supported |
Java | Java SDK | Not supported |
API Authentication
We use Bearer authentication. Pass the API token into the code under the header Authorization.
Permissions/User management
If you are on the Business plan or higher, you can add users to your account and manage their permissions. To do it, click the User Management menu under Settings, then the three dots (more menu) on the right. You can also manage users and permissions with API.
Based on the permissions users get, they can view, access, and/or modify specific functionalities of an app. Note that a user needs Admin permissions to get authenticated and send emails via API.
Additionally, Mailtrap allows you to enable or disable app-based 2FA for all or some users within your account with an option to enforce 2FA for all users. Check our 2FA guide for more details.
If you want to learn more about managing users’ permissions, click this link ◀️.
ActionMailer Balancer for smooth migration
For Ruby on Rails applications, Mailtrap offers an ActionMailer Balancer that makes the migration smooth.
ActionMailer extension allows for the proportional distribution of the email-sending load between two different sending services and mitigates sending risks.
After you install the Balancer and make some minor configurations, ActionMailer’s sending method will get extended.
For more detailed info on the boilerplate and use in development, read the Mailtrap ActionMailer Balancer GitHub page.