# كيفية إعداد SMTP لاستخدام localhost؟

**URL:** <https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464>\
**Category:** Product Support\
**Created:** [20 أكتوبر 2019، 5:02ص UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464 "2019-10-20T05:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [20 أكتوبر 2019، 2:08م UTC](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464/4 "2019-10-20T14:08:02Z")

</div>

إذا كان التطبيق يعمل على نفس المضيف (host) الخاص بـ Docker ولكن داخل حاوية (container) مختلفة، فيجب عليك تحديد عنوان IP للمضيف.

لن يعمل 127.0.0.1 لأنه عنوان العودة إلى الحلقة (loopback address). كل حاوية ترى 127.0.0.1 على أنها نفسها.

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-smtp-config-to-use-localhost/131464)._
