# More bulk email options

**URL:** <https://forum.ghost.org/t/more-bulk-email-options/60598>\
**Category:** Contributing to Ghost\
**Created:** [September 26, 2025, 5:38am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598 "2025-09-26T05:38:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [September 26, 2025, 5:38am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/1 "2025-09-26T05:38:46Z")

</div>

What if a few of us self-hosters developed requirements to support more than mailgun and got sign off from active maintainers on the implementation approach and then pursued developing it? This seems like something we could divide and conquer and certainly beats complaining why mailgun is the only option for us. If this sounds directionally OK who might be the right folks to collaborate with and start soliciting high level feedback and run plans past? And where is the best place do that? I agree reopening why and how we are here is not constructive and has been discussed.

---

<div class="post-metadata">

**Author:** ![mulderfrank](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mulderfrank/32/29721_2.png) [@mulderfrank](https://forum.ghost.org/u/mulderfrank)\
**Post date:** [October 1, 2025, 10:31am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/2 "2025-10-01T10:31:49Z")

</div>

There is a topic about Mailgun Alternative:

> [@Mailgun alternative](https://forum.ghost.org/t/mailgun-alternative/29428/26):
>
> I noticed that there was an update from @ghost/@Hannah at the pull request. Since not everybody might be following that, copy below: Hey [@peterpacket](https://github.com/peterpacket) waving_hand Really appreciate the intention here, and I can see you’re putting effort in so wanted to flag up right away - we wouldn’t merge this change from a single PR. We’d want to put together a plan for how to make the two integrations play nicely together, a test plan for how we ensure it works, and we’d also need to discuss long term …

Which also leads to work on Github:

> <https://github.com/TryGhost/Ghost/pull/22771>
>
> \### Why are you making it?
> We use postmark to send our mails, but we are missin…g a postmark integration for Ghost.
> 
> \### What does it do?
> It add postmark as a second mail service provider
> 
> \### Why is this something Ghost users or developers need?
> For Ghost users where mailgun is not an option.
> 
> Please check your PR against these items:
> 
> \- \[x\] I've read and followed the \[Contributor Guide\](https://github.com/TryGhost/Ghost/blob/main/.github/CONTRIBUTING.md)
> \- \[x\] I've explained my change
> \- \[\] I've written an automated test to prove my change works
> 
> 
> \---
> This a copy of https://github.com/TryGhost/Ghost/pull/20530, submitting it again because our main branch got corrupted due to a merge conflict.
> 
> 
> \---
> 
> \> \[!NOTE\]
> \> Adds Postmark as a first-class bulk email provider alongside Mailgun, with UI selection, settings, core sending/analytics support, and tests.
> \> 
> \> - \*\*Email provider selection (Admin UI)\*\*:
> \> - New \`BulkEmail\` settings group replaces Mailgun-only UI; supports choosing \`postmark\` or \`mailgun\` and entering provider-specific credentials.
> \> - Updates search keywords and acceptance tests to target \`bulk-email\` section and generic "provider not set up" state.
> \> - \*\*Core email sending\*\*:
> \> - Generalizes provider to \`BulkEmailProvider\`; dynamically selects client (Mailgun or Postmark) via new \`getMailClient\`.
> \> - Integrates Postmark client into sending, batching limits, and error handling paths.
> \> - \*\*Email analytics\*\*:
> \> - Adds \`@tryghost/email-analytics-provider-postmark\` and wires it into analytics wrapper alongside Mailgun.
> \> - \*\*Suppression list\*\*:
> \> - Refactors to use a generic email API client; sources client from EmailService.
> \> - \*\*Settings & config\*\*:
> \> - New settings: \`bulk\_email\_provider\`, \`postmark\_api\_token\`; allowlisted in API serializer and added to defaults.
> \> - Public config exposes \`postmarkIsConfigured\`.
> \> - Ember Admin settings model/service updated to reflect bulk email configuration state.
> \> - \*\*Packages\*\*:
> \> - New \`@tryghost/postmark-client\` and \`@tryghost/email-analytics-provider-postmark\` packages; dependencies added to \`ghost/core/package.json\`.
> \> - \*\*Editor UX\*\*:
> \> - Replace Mailgun-specific checks/messages with generic \`bulkEmailIsConfigured\` gating in preview and publish flows, with updated copy and tests.
> \> 
> \> \<sup\>Written by \[Cursor Bugbot\](https://cursor.com/dashboard?tab=bugbot) for commit 42d07816a98dbf1ec531903c1dd00f6a143afc91. This will update automatically on new commits. Configure \[here\](https://cursor.com/dashboard?tab=bugbot).\</sup\>

I remember there was a discussion about needed an adapter first.  
Can’t find it that quickly.

---

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [October 25, 2025, 2:58am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/3 "2025-10-25T02:58:51Z")

</div>

Thanks @mulderfrank for pointing me to @Hannah’s feedback. After reviewing her comment about wanting a plan with incremental changes rather than a single PR, I’ve attempted to implement exactly that approach in the hopes that I can help the community move this forward. See updated post [below!!](https://forum.ghost.org/t/more-bulk-email-options/60598/6)  
~~  
I’ve submitted a 4-PR foundation series that extracts Mailgun to an adapter pattern.~~

~~ 
### Phase 1: Foundation
 
1. **Extract provider creation** - [#25244](https://github.com/TryGhost/Ghost/pull/25244)
2. **Factory pattern for providers** - [#25246](https://github.com/TryGhost/Ghost/pull/25246)
3. **Analytics provider factory** - [#25247](https://github.com/TryGhost/Ghost/pull/25247)
4. **Suppression provider factory** - [#25248](https://github.com/TryGhost/Ghost/pull/25248)

 ~~

Each PR is minimal and focused (following her guidance to “make the smallest change you can find”), includes comprehensive tests, and aims to maintain backward compatibility. After these merge, the architecture should support extending it to support Amazon SES, SendGrid, Postmark, and community-contributed providers.

The foundation is now complete and submitted. Looking forward to feedback from the Ghost team as I trust it will still need additional work!

In the first PR I proposed some potential next steps:

### Phase 2: First Alternative Provider

- PR5: Amazon SES implementation

- PR6-8: SES configuration & testing

- **Milestone:** SES available to users ✈

### Phase 3: Community Providers

~~ - SendGrid, Postmark, SMTP providers

 - Provider selection UI

 ~~-  

~~etc~~

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [October 25, 2025, 11:16am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/4 "2025-10-25T11:16:17Z")

</div>

Hi All! I’m pulling this content, originally attached to someone else’s thread that was unlisted (because it started out unproductive) into its own thread. Otherwise no one but the original posters and mods will be able to see it.

---

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [October 25, 2025, 6:35pm UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/5 "2025-10-25T18:35:13Z")

</div>

Just a brief note: I got some very useful feedback and am closing the PRs and will re-architect and resubmit an updated series. [Extract email provider logic to testable factory (PR 2 of 4) by danielraffel · Pull Request #25246 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/pull/25246#issuecomment-3447039949)

---

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [October 25, 2025, 8:44pm UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/6 "2025-10-25T20:44:27Z")

</div>

### Updated PR Series Submitted for Review

**Phase 1: Email Adapter Foundation**

1. [Added email provider base class for adapter system (1/4)](https://github.com/TryGhost/Ghost/pull/25250)

2. [Implemented Mailgun email provider adapter (2/4)](https://github.com/TryGhost/Ghost/pull/25251)

3. [Added email analytics adapter support with Mailgun implementation (3/4)](https://github.com/TryGhost/Ghost/pull/25252)

4. [Added email suppression adapter support with Mailgun implementation (4/4)](https://github.com/TryGhost/Ghost/pull/25253)

* * *

**Phase 2: [Amazon SES](https://aws.amazon.com/ses/) Integration for Sending Newsletters**

1. [SES Email Adapter (1/3)](https://github.com/TryGhost/Ghost/pull/25367)

2. [SES Analytics + Integration + Admin UI (2/3)](https://github.com/TryGhost/Ghost/pull/25365)

3. [SES Newsletter Personalization (3/3)](https://github.com/TryGhost/Ghost/pull/25366)

**New (config driven) SES Email Provider Newsletter Setting 🤤**

- _Mailgun remains the default but this replaces it if SES is setup (can only be one newsletter mail config setting)_\*  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/e/c/ecb341dc99362ce078d155bf0e7326f3522355a2.png)

* * *

**Included Setup and Documentation**  
Reference documentation, and over 70 tests, are included. Complete setup script included in phase 2 for configuring AWS SES to make it easier to review / test using a working Amazon environment.

**1. [config.development.json.example](https://github.com/TryGhost/Ghost/pull/25366/files#diff-971050b3f558a006192a58d63db4521e8cfbdbc3b2678dbde8c1ec4ed50b1697)**  
• Example SES configuration for local testing  
• Demonstrates all three configuration sections: mail, adapters.email, and emailAnalytics  
• Uses placeholder credentials for safety

**2. [config.production.json.example](https://github.com/TryGhost/Ghost/pull/25366/files#diff-5819298de789f9f069a57f7a8f7ea5c3d2b684d7596d05b8e399ae02a9c303df)**  
• Full production-ready configuration template  
• Includes database, server, and privacy settings  
• Follows SES configuration best practices

**3. [SES-SETUP.md](https://github.com/TryGhost/Ghost/pull/25366/files#diff-7c2f909d523c373746c335823a42b3abdd7aa3bd8ae31b1e79566567e84f5943)**  
• Comprehensive AWS SES infrastructure guide  
• Step-by-step CLI commands for:  
• Creating SNS topics and SQS queues (with optimized attributes)  
• Setting up subscriptions, policies, and configuration sets  
• Defining event destinations  
• Critical note: Explains why click tracking must be disabled in Ghost  
• Lists required IAM permissions, verification commands, and troubleshooting steps

**4. [DOCS-SUGGESTION-SES.md](https://github.com/TryGhost/Ghost/pull/25366/files#diff-b23008122e508a19e556c24a12c6da6463d5f3885713c98377b672fda0a134c0)**  
• Concise working draft content for [Ghost Newsletter Docs](https://docs.ghost.org/newsletters)  
• Focused on technical users  
• References the setup script approach  
• Mirrors the structure and tone of the Mailgun documentation

* * *

I realize Ghost likely has higher-priority work right now, so I continued independently with the goal of making respectful, steady progress. Hopefully, this is a useful contribution to the community. It would be great to have the opportunity to discuss next steps and / or explore merging this upstream if there’s interest from Ghost maintainers. My sense is that the community has long wanted more newsletter provider options, I think it makes Ghost a more valuable platform, and it’s been an honor to help move that forward.

---

<div class="post-metadata">

**Author:** ![muratcorlu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/muratcorlu/32/38509_2.png) [@muratcorlu](https://forum.ghost.org/u/muratcorlu)\
**Post date:** [November 6, 2025, 8:39am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/7 "2025-11-06T08:39:18Z")

</div>

_I wrote to one of the PRs but want to mention same comment here as well:_

I don’t think Ghost needs to have AWS SES adapter built-in, unless Ghost core team really uses it. Otherwise maintaining those adapters will be an issue for the core team.

I think having an adapter mechanism would be enough for Ghost core. And self-hosters can use a 3rd party adapter to add SES or other providers to their Ghost sites.

In addition to that, I’m curious if you are able to test and use those adapters with SES in some of your Ghost sites? You created tons of PRs with many changes in a very short time range. I mean, you are as fast as my AI colleagues. But my AI colleagues don’t really test if it really works. I’m doing heavy lifting part by testing their solution and it takes quite much time. How do you manage this?

---

<div class="post-metadata">

**Author:** ![Henry\_Junior](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/henry_junior/32/25808_2.png) [@Henry\_Junior](https://forum.ghost.org/u/Henry_Junior)\
**Post date:** [November 6, 2025, 10:24am UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/8 "2025-11-06T10:24:27Z")

</div>

There are 70 tests and I can confirm SES is working on my site. I built this in two phases supporting Mailgun as the first adapter and Amazon SES as the second. I trust the maintainers of Ghost can decide what’s right for the community. It’s available to those who are interested and I am prepared to help support it. The first PR explains the logic behind the approach which was guidance from [@ErisDS](https://github.com/ErisDS) who is the Ghost CTO:

> “Make the smallest change you can find that moves the codebase towards having mailgun bulk mail be an adapter, rather than built-in”

> <https://github.com/TryGhost/Ghost/pull/25250>
>
> \## Summary
> 
> \*\*Phase 1: Email Adapter Foundation (1/4)\*\*
> 
> Creates the base email …provider adapter class to enable pluggable email providers. This establishes the foundation for supporting multiple email services (Mailgun, SES, Postmark, SendGrid) while maintaining backward compatibility.
> 
> \*\*Phase 1:\*\* 📍\[PR1\](https://github.com/TryGhost/Ghost/pull/25250) → \[PR2\](https://github.com/TryGhost/Ghost/pull/25251) → \[PR3\](https://github.com/TryGhost/Ghost/pull/25252) → \[PR4\](https://github.com/TryGhost/Ghost/pull/25253)
> 
> \*\*Phase 2:\*\* \[PR5\](https://github.com/TryGhost/Ghost/pull/25367) → \[PR6\](https://github.com/TryGhost/Ghost/pull/25365) → \[PR7\](https://github.com/TryGhost/Ghost/pull/25366)
> 
> \---
> 
> \## Context
> 
> This PR series addresses \[#22771#issuecomment-2793035710\](https://github.com/TryGhost/Ghost/pull/22771#issuecomment-2793035710) to add support for alternative email providers.
> 
> Following @ErisDS's guidance:
> \> "Make the smallest change you can find that moves the codebase towards having mailgun bulk mail be an adapter, rather than built-in"
> 
> \## Changes
> 
> \- Introduces \`EmailProviderBase\` adapter class with immutable contract enforcement
> \- Registers \`email\` adapter type in AdapterManager
> \- Adds email adapter configuration to defaults
> \- Includes unit tests for base class contract
> 
> The base class requires implementations to provide a \`send()\` method and validates this contract through AdapterManager.
> 
> \*\*Next:\*\* PR2 refactors Mailgun to use this adapter pattern.
> 
> 
> \---
> 
> \> \[!NOTE\]
> \> Introduce base email provider adapter and wire it into the adapter manager with default config and tests.
> \> 
> \> - \*\*Backend\*\*
> \> - \*\*Email\*\*
> \> - Add \`EmailProviderBase\` adapter class with \`send\` contract and config handling in \`core/server/adapters/email/EmailProviderBase.js\`.
> \> - Register \`email\` adapter type in \`core/server/services/adapter-manager/index.js\`.
> \> - Extend \`core/shared/config/defaults.json\` with \`adapters.email\` defaults (\`active: "mailgun"\`, \`mailgun\`, \`ses\`).
> \> - \*\*Tests\*\*
> \> - Add unit tests for \`EmailProviderBase\` covering construction and \`send\` not-implemented error.
> \> 
> \> \<sup\>Written by \[Cursor Bugbot\](https://cursor.com/dashboard?tab=bugbot) for commit f58b630929f6425af30f98b93f08d8a1f7593919. This will update automatically on new commits. Configure \[here\](https://cursor.com/dashboard?tab=bugbot).\</sup\>

---

<div class="post-metadata">

**Author:** ![andreascreten](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andreascreten/32/28386_2.png) [@andreascreten](https://forum.ghost.org/u/andreascreten)\
**Post date:** [June 2, 2026, 2:58pm UTC](https://forum.ghost.org/t/more-bulk-email-options/60598/9 "2026-06-02T14:58:16Z")

</div>

Gave it one more go, I don’t see any reason not to accept this change. [Add email adapter pattern for pluggable email providers by andreascreten · Pull Request #28247 · TryGhost/Ghost · GitHub](https://github.com/TryGhost/Ghost/pull/28247)
