# Setup smtp for local development on macOS

**URL:** https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403
**Category:** Self-hosting
**Tags:** email, dev-install
**Created:** [January 12, 2024, 7:35am UTC](https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403 "2024-01-12T07:35:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [January 12, 2024, 7:35am UTC](https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403/1 "2024-01-12T07:35:51Z")

</div>

Hello!,  
How do we setup smtp for sending emails on local development on macOS?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [January 12, 2024, 7:35pm UTC](https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403/2 "2024-01-12T19:35:37Z")

</div>

For dev purposes (just to see emails and test sending/receiving etc.), you can use Mailhog:

> **[GitHub - mailhog/MailHog: Web and API based SMTP testing](https://github.com/mailhog/MailHog)**
>
> Web and API based SMTP testing

Install it, run `mailhog` from a Terminal window, and then head over to [http://0.0.0.0:8025](http://0.0.0.0:8025) to see your inbox.

---

<div class="post-metadata">

### Author: ![omppatil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omppatil/32/359876_2.png) [@omppatil](https://meta.discourse.org/u/omppatil)
#### Post date: [January 16, 2024, 4:36am UTC](https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403/3 "2024-01-16T04:36:07Z")

</div>

I am looking for notification emails to be sent to users who have subscribed to categories such as ‘watching,’ ‘tracking,’ ‘watching first post,’ ‘normal,’ and ‘muted’ when they publish a topic or post that requires approval before being published in local development.can Mailhog help me doing that?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [January 16, 2024, 5:01pm UTC](https://meta.discourse.org/t/setup-smtp-for-local-development-on-macos/291403/4 "2024-01-16T17:01:25Z")

</div>

Yes, MailHog will intercept all emails sent by Discourse, so you will be able to see all notification emails sent to users in your local site in the MailHog interface.
