# Setup email for development?

**URL:** https://meta.discourse.org/t/setup-email-for-development/62787
**Category:** Development
**Created:** [May 16, 2017, 7:29am UTC](https://meta.discourse.org/t/setup-email-for-development/62787 "2017-05-16T07:29:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Radulf](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Radulf](https://meta.discourse.org/u/Radulf)
#### Post date: [May 16, 2017, 7:29am UTC](https://meta.discourse.org/t/setup-email-for-development/62787/1 "2017-05-16T07:29:24Z")

</div>

I’m currently setting up my discourse and am currently still using the development version as I still want to create some plugins. Now, I want to setup my email for the forum but do not know how I can do that in the development version. Where can I set my SMTP settings in a development version?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 16, 2017, 8:13am UTC](https://meta.discourse.org/t/setup-email-for-development/62787/2 "2017-05-16T08:13:28Z")

</div>

You don’t need to setup SMTP credentials in development. Discourse is automatically configured to use mailcatcher. Just launch `mailcatcher` and open the web UI. It will show all the emails sent by discourse 😉

---

<div class="post-metadata">

### Author: ![Radulf](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Radulf](https://meta.discourse.org/u/Radulf)
#### Post date: [May 16, 2017, 8:24am UTC](https://meta.discourse.org/t/setup-email-for-development/62787/3 "2017-05-16T08:24:16Z")

</div>

Do I need to use mailcatcher? I would prefer to send out mails via SMTP to see how things would work once I switch to the regular non-development version. Is that not possible in development?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [May 16, 2017, 8:33am UTC](https://meta.discourse.org/t/setup-email-for-development/62787/4 "2017-05-16T08:33:20Z")

</div>

You’ll want to setup some sort of staging environment for that. It isn’t a bad idea to have anyway, if you’ve got custom plugins, because you’ll probably want to test all updates in a production-like environment to make sure you don’t let the smoke out before you take new changes (to Discourse itself, or your plugins) live, juuuuust in case.

---

<div class="post-metadata">

### Author: ![drew0101](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@drew0101](https://meta.discourse.org/u/drew0101)
#### Post date: [October 18, 2017, 7:30pm UTC](https://meta.discourse.org/t/setup-email-for-development/62787/5 "2017-10-18T19:30:39Z")

</div>

> [@zogstrip](#):
>
> Discourse is automatically configured to use mailcatcher. Just launch mailcatcher and open the web UI.

I am running discourse locally within a docker container, but when I attempt to send a test email via “email address to test” field in admin settings (from the READ ME FIRST Admin Quick Start Guide), I never receive an email even though it says it was successful. I have mailcatcher running and see this in the mailcatcher logs “SMTP: Received message from ‘[noreply@unconfigured.discourse.org](mailto:noreply@unconfigured.discourse.org)’ (6578 bytes)”. I also see that the message was sent in the rails logs. Any idea why the email is never actually delivered? (I did check junk folder)

---

<div class="post-metadata">

### Author: ![drew0101](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@drew0101](https://meta.discourse.org/u/drew0101)
#### Post date: [October 18, 2017, 8:06pm UTC](https://meta.discourse.org/t/setup-email-for-development/62787/6 "2017-10-18T20:06:49Z")

</div>

For anyone coming here in the future for the same reason as I did. The Mailcatcher UI by default is [http://127.0.0.1:1080/](http://127.0.0.1:1080/)

Edit:  
Also important that sidekiq is running otherwise the only email that will work is the email delivery test  
bundle exec sidekiq
