# Meilleure méthode pour obtenir la configuration SMTP

**URL:** <https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433>\
**Category:** Development\
**Created:** [Juin 21, 2018, 11:34 UTC](https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433 "2018-06-21T23:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![brahn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brahn/32/109267_2.png) [@brahn](https://meta.discourse.org/u/brahn)\
**Post date:** [Juin 22, 2018, 2:12 UTC](https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433/3 "2018-06-22T02:12:42Z")

</div>

> [@pfaffman](#):
>
> That’s working, but is there a more Railsy/straightforward way to get those SMTP values from Rails rather than ENV?

Is this the right place?

`Discourse::Application.config.action_mailer.smtp_settings`

---

_[View the full topic](https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433)._
