---
title: "Migrate your email code to Nextmail"
description: "Paste the code that sends your email through Resend, SendGrid, Postmark or Mailgun and get it back on Nextmail, with every change listed and every call checked."
url: "https://nextmail.sh/migrate"
---

Migrate

# Your email code, rewritten for Nextmail.

Paste the code that sends your mail today. It comes back in the same language on the Nextmail SDK, with every change listed and every call checked against the reference.

[Convert your code](https://nextmail.sh/migrate#convert) [Open mail](https://nextmail.sh/mail/inbox) [Get Started](https://nextmail.sh/signup.md)

Converter

## Paste it in, read what changed.

Pick where the code comes from and its language. Recognised keys are removed in your browser, and nothing you paste is kept.

From

Your Nextmail code appears here

Paste a file, or load an example, then convert.

0 of 12,000 characters Recognised keys are removed before sending.

## A guide for every platform you leave.

What maps to what when you move your code, and every step when you move a list or a mailbox.

### Sending and marketing

- Resend
  
  Keep your code on the compatible API, or convert it.
- SendGrid
  
  Personalizations, dynamic templates and event webhooks.
- Postmark
  
  Server tokens, message streams and templates.
- Mailgun
  
  Domains, o: options and v: variables.
- Mailchimp
  
  Lists, subscribers and unsubscribes, with one key.

### Mailboxes

- Gmail
  
  Mail, labels and threads, from Google Takeout.
- Outlook
  
  Mail, contacts and calendars, with a Microsoft sign-in.
- Google Workspace
  
  Your team's mailboxes and your domain, labels included.
- iCloud Mail
  
  Mail, contacts and calendars, with an app-specific password.
- Yahoo Mail
  
  Mail, contacts and calendars, with an app password.
- Proton Mail
  
  Proton's own export, with folders and labels.
- Zoho Mail
  
  Every folder, over IMAP with an app password.
- AOL Mail
  
  Your folders and read state, with an app password.
- Fastmail
  
  One export per folder, threads intact.
- HEY
  
  Every message and attachment, from one export.

## Four steps from paste to production.

1. 01
   
   Paste one file
   
   The code that sends your mail, in Node.js, Python, Ruby, PHP or cURL. Recognised keys are removed in your browser first.
2. 02
   
   Read the rewrite
   
   The same program on Nextmail, with each change, each manual step and each option left out listed beside it.
3. 03
   
   Check every call
   
   Every Nextmail call is matched against the SDK reference, and anything left of the old provider is flagged.
4. 04
   
   Ship it
   
   Add your domain, create an API key, set NEXTMAIL\_API\_KEY and deploy.

## Questions about moving your code.

## Converted? Create the key it reads.

A workspace takes a minute. Add your domain, create an API key and set NEXTMAIL\_API\_KEY.

[Open mail](https://nextmail.sh/mail/inbox) [Get Started](https://nextmail.sh/signup.md)[Read the SDK docs](https://nextmail.sh/docs/sdk.md)
