← All guides marginal.sh

Testing Re-engagement Subject Lines in OpenAI Codex

Updated June 2026 · Hosted email MCP server

Connect OpenAI Codex to marginal's email MCP server and turn win-back campaigns into a repeatable loop: generate variants, launch a subject line A/B test, and let measured lift decide your next move.

Why re-engagement needs a subject line test

Re-engagement campaigns target subscribers who have gone quiet, so the subject line carries almost all the weight — it's the only thing an inactive contact sees before deciding to open or ignore. A guess won't tell you whether "We miss you" beats "Still want these?" with your specific list.

Running a subject line A/B test removes the guesswork. Instead of shipping one re-engagement subject and hoping, you put several framings in front of a slice of the audience and let open rates pick the winner before the full send.

How OpenAI Codex drives marginal

With the marginal MCP server connected, OpenAI Codex can call email tools directly from your editor or agent session. You describe the re-engagement goal in plain language and Codex orchestrates the experiment through marginal's hosted endpoint at https://marginal.sh/mcp.

The flow maps onto four MCP tools, so AI agent email marketing becomes a short, auditable sequence rather than a manual chore.

A re-engagement workflow in Codex

A practical session looks like a conversation. Ask Codex to produce re-engagement subject lines for your dormant segment, launch the test, wait for early signal, then act on the recommendation — all without leaving your workspace.

Getting started

marginal is fully hosted, so there's nothing to deploy — point OpenAI Codex at the endpoint, authenticate with your Bearer API key, and start testing. The free tier covers 100 experiments per month, which is plenty to dial in a re-engagement subject line strategy.

See the setup steps and tool reference in the docs at https://marginal.sh/docs/ to wire Codex into your campaign workflow.

Get started with marginal

marginal is a hosted email marketing MCP server at marginal.sh. Sign up free, create an API key, and connect https://marginal.sh/mcp from Cursor, Codex, or Claude Desktop.

Documentation · Sign up · FAQ