Setup smtp for local development on macOS

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

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

Install it, run mailhog from a Terminal window, and then head over to to see your inbox.


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?

1 Like

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.

1 Like