🔵 Drupal Module · Free
Install the free Mail2Draft Drupal module and your site will automatically receive webhook payloads from Mail2Draft and create draft nodes — ready for editorial review.
Free forever. Compatible with Drupal 10 & 11.
How it works
The module exposes a webhook endpoint. Mail2Draft calls it when a new email matches your flow.
Install from drupal.org/project/mail2draft or via Composer. The module lives in /modules/contrib/mail2draft. Enable it under Extend or with Drush.
After enabling the module, go to Configuration → Mail2Draft. Your webhook endpoint URL is shown there — copy it.
In your Mail2Draft account, open a Flow and paste the webhook URL into the Output section. Optionally set a Bearer token to secure the endpoint.
Send an email with your subject tag to your Mail2Draft address. A draft node will appear in Drupal's content overview within seconds.
Webhook payload
Mail2Draft sends a structured JSON POST. The module maps these fields to a Drupal node automatically.
{
"messageId": "<abc123@mail2draft.eu>",
"subject": "[blog] My article title",
"fromAddress": "author@example.com",
"fromName": "Jane Author",
"bodyText": "Plain text body of the email...",
"bodyHtml": "<p>HTML body of the email...</p>",
"contextTag": "blog",
"promptTemplate": "Turn this email into a blog post draft.",
"receivedAt": "2025-06-01T09:30:00+00:00",
"attachments": []
}
The module responds with {"title": "Node title", "url": "https://yoursite.com/node/123"} so Mail2Draft can log the draft URL and reply to you.
Download
The module is free and open source. No licence key required.
mail2draft_drupal
Drupal 10 & 11 · Free · Open source
Or install via Composer:
composer require drupal/mail2draft drush en mail2draft -y
FAQ
By default the module creates article nodes. You can configure the target content type and field mappings in the module settings at /admin/config/mail2draft.
Yes. You can set a Bearer token in the module settings. Mail2Draft will include it in every request as an Authorization: Bearer ... header.
No. The module processes each webhook payload immediately and does not store raw email content. Only the resulting node is persisted.
Yes — the module is free but requires a Mail2Draft account to send webhook payloads to your Drupal site.
Create your free Mail2Draft account, set up a flow, and install the module. Drafts in minutes.