# How to setup smtp email in production

**URL:** <https://discuss.openedx.org/t/how-to-setup-smtp-email-in-production/3427>\
**Category:** Site Operations Help\
**Tags:** devops, how-to, juniper\
**Created:** [October 17, 2020, 12:20pm UTC](https://discuss.openedx.org/t/how-to-setup-smtp-email-in-production/3427 "2020-10-17T12:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Herve\_siyou](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/herve_siyou/32/1452_2.png) [@Herve\_siyou](https://discuss.openedx.org/u/Herve_siyou)\
**Post date:** [October 21, 2020, 4:10pm UTC](https://discuss.openedx.org/t/how-to-setup-smtp-email-in-production/3427/4 "2020-10-21T16:10:08Z")

</div>

2 options:

1- in your site\_configuration, in LMS Django Admin, check that you have **“lms\_root\_url”:“[http://www.domain.com](http://www.domain.com)”** , and edit the file **“lms/templates/emails/activation\_email.txt”** , change “ **lms\_url** ” by “ **lms\_root\_url** ”

2- just go and edit the file **“lms/templates/emails/activation\_email.txt”** , change “ **lms\_url** ” by “ **LMS\_ROOT\_URL** ”

Restart all services, and try again.

That’s how i fixed it.

Regards,

---

_[View the full topic](https://discuss.openedx.org/t/how-to-setup-smtp-email-in-production/3427)._
