Для этого вам необходимо настроить отправителя почты, например Mailgun, Brevo, Elastic Email или другого. Первый шаг — выбрать отправителя, после чего потребуется выполнить несколько действий для его настройки.
Сначала вам нужно создать учётную запись у сервиса транзакционной электронной почты, а затем интегрировать его с вашей установкой Discourse.
Это второй шаг стандартной установки:
# Install Discourse on a Cloud Server
> To install and self-host Discourse, follow the steps below. But if you'd rather skip the setup, maintenance, and server management, our official Discourse hosting takes care of everything for you.
>
> [Learn more about Discourse hosting](https://discourse.org/pricing)
> If you prefer to self-host but need help setting it up we have partners who can help.
> [Click here to explore self-hosting set-up options](https://discourse.org/partners).
**Set up Discourse in about 10 minutes** with zero knowledge of Rails or Linux shell. Works on any Docker-compatible cloud provider or local server.
## Contents
- [Quick Start](#quick-start)
- [Requirements](#requirements)
- [Installation](#installation)
- [The Setup Wizard](#the-setup-wizard)
- [After Installation](#after-installation)
- [Advanced Configuration](#advanced-configuration)
- [Troubleshooting](#troubleshooting)
This file has been truncated. show original
### Recommended Email Providers for Discourse
We strongly recommend using a dedicated email service. Email server setup and maintenance is _very_ difficult even for experienced system administrators, and getting any part of the complex required email setup wrong means your email won't be delivered, or worse, delivered erratically.
The following are template configurations for email service providers known to work with Discourse.
_The pricing information is included as a courtesy, and may be out of date. Discourse does not control the pricing for external services, be sure to check with the email provider for up to date pricing information._
**Please note that in any email provider, you _must_ verify and use the subdomain, e.g. `discourse.example.com`. If you verify the domain only, e.g. `example.com`, mail will not be configured correctly.**
Enter these values when prompted by `./discourse-setup` per the [install guide](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md#edit-discourse-configuration). To change the current email service, run `./discourse-setup` as well (this will bring the forum offline for a few minutes while it gets rebuilt).
#### [Brevo, previously SendInBlue, GDPR][sb] — 300 email per day free
SMTP server address? smtp-relay.brevo.com
SMTP user name? [SMTP credentials in [SMTP & API page](https://app.brevo.com/settings/keys/smtp)]
SMTP password? [SMTP credentials in [SMTP & API page](https://app.brevo.com/settings/keys/smtp)]
Port: 587
#### [Mailgun][gun] — 50k emails/month on a 30 day trial OR 10k emails/month with no trial
This file has been truncated. show original
Вот руководство по устранению неполадок:
You just installed Discourse via the install guide , but email doesn’t seem to work. Unfortunately this means you can’t log in as an admin to finalize the install. Let’s troubleshootize!
Try the doctor
If you run ./discourse-doctor it will check several ways that your mail configuration might be broken, and offer advice. Try that first.
Did you enter email settings correctly?
The simplest way is to run ./discourse-setup again. Did you enter everything correctly? B…