Switched dev:mailgun script to use Mailgun API instead of SMTP#29145
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis change updates the development environment configuration for Mailgun email delivery, switching from SMTP-based transport to Mailgun's API-based transport. The Changes
Related Issues: None mentioned. Related PRs: None mentioned. Suggested labels: configuration, mailgun, dev-environment Suggested reviewers: None specified. PoemA rabbit hops from SMTP's den, ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin:build |
✅ Succeeded | 5s | View ↗ |
nx run ghost:build:assets |
✅ Succeeded | 2s | View ↗ |
nx run-many -t lint -p ghost-monorepo |
✅ Succeeded | <1s | View ↗ |
nx run ghost:build:tsc |
✅ Succeeded | 6s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | <1s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-07-07 15:26:03 UTC
35e938e to
89fff43
Compare
dev:mailgun script to use Mailgun API instead of SMTP
89fff43 to
0535cdd
Compare
|
Bugbot is not enabled for this team, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |

closes https://linear.app/ghost/issue/NY-1408/ensure-automation-emails-are-sent-via-the-mailgun-api-in-production
Summary
pnpm dev, automation emails are sent to Mailpit. This is fine for the current features, but now that we're working on adding email analytics for automation emails, we need to start using the Mailgun API to send these. This is already how Ghost is configured on Ghost(Pro), but it's currently somewhat tricky to mimic this config locally.pnpm dev:mailgunsetup is almost there, but it uses Mailgun via SMTP, which doesn't pass along the tags and other metadata needed for automations email analytics.pnpm dev:mailguncommand to use the Mailgun API (transport = mailgun) for newsletters, transactional emails, and automation emails alike, which also aligns with how mail is configured on Ghost(Pro)