Skip to content

Commit

Permalink
Add information about USER_EMAIL_URL env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
8r2y5 committed Jun 11, 2024
1 parent 1b374d6 commit 9518691
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/developer/app-store/legacy-plugins/user-emails.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ If you plan on building a new integration with Saleor, we recommend using the [E

After being called by [`PluginManager`](developer/extending/plugins/overview.mdx), the plugin will fill the template using event payload and send a message via SMTP.

## Configuration

If the email configuration of the plugin on the dashboard side will be empty, the plugin will try to use variables defined in settings.py file:

- `settings.USER_EMAIL_HOST`
- `settings.USER_EMAIL_PORT`
- `settings.USER_EMAIL_HOST_USER`
- `settings.USER_EMAIL_HOST_PASSWORD`
- `settings.USER_EMAIL_USE_TLS`
- `settings.USER_EMAIL_USE_SSL`

### Note

Alternatively those variables can be provided via [`USER_EMAIL_URL`](../../../setup/configuration.mdx#user_email_url) environment variable.
Plugin configuration values will override the environment variable values.

## Available events

- `account_confirmation`
Expand Down
18 changes: 18 additions & 0 deletions docs/setup/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,24 @@ Some examples:

**Example:** `smtp://user:password@smtp.example.com:465/?ssl=True`

### `USER_EMAIL_URL`

The URL used by [`UserEmails`](../developer/app-store/legacy-plugins/user-emails).

Some examples:

| Description | URL |
| ------------------------- | ----------------------------------------------------------------------------- |
| Amazon SES | `smtp://username:password@email-smtp.us-east-1.amazonaws.com:587/?tls=True` |
| Gmail | `smtp://my.gmail.username@gmail.com:my-password@smtp.gmail.com:465/?ssl=True` |
| Mailgun | `smtp://username:password@smtp.mailgun.org:465/?ssl=True` |
| Mailjet | `smtp://username:password@in-v3.mailjet.com:587/?tls=True` |
| OVH | `smtp://username@example.com:my-password@pro1.mail.ovh.net:587/?tls=True` |
| SendGrid | `smtp://apikey:your.api.key@smtp.sendgrid.com:465/?ssl=True` |
| A SMTP server unencrypted | `smtp://username@example.com:my-password@smtp.example.com:25/` |

**Example:** `smtp://user:password@smtp.example.com:465/?ssl=True`

### `FEDERATED_QUERY_MAX_ENTITIES`

Sets upper limit on how many entities may be requested by Apollo Federation's gateway for a single GraphQL query. Defaults to `100`. Set to `0` to remove this limit.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ If you plan on building a new integration with Saleor, we recommend using the [E

After being called by [`PluginManager`](developer/extending/plugins/overview.mdx), the plugin will fill the template using event payload and send a message via SMTP.

## Configuration

If the email configuration of the plugin on the dashboard side will be empty, the plugin will try to use variables defined in settings.py file:

- `settings.USER_EMAIL_HOST`
- `settings.USER_EMAIL_PORT`
- `settings.USER_EMAIL_HOST_USER`
- `settings.USER_EMAIL_HOST_PASSWORD`
- `settings.USER_EMAIL_USE_TLS`
- `settings.USER_EMAIL_USE_SSL`

### Note

Alternatively those variables can be provided via [`USER_EMAIL_URL`](../../../setup/configuration.mdx#user_email_url) environment variable.
Plugin configuration values will override the environment variable values.

## Available events

- `account_confirmation`
Expand Down
18 changes: 18 additions & 0 deletions versioned_docs/version-3.x/setup/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,24 @@ Some examples:

**Example:** `smtp://user:password@smtp.example.com:465/?ssl=True`

### `USER_EMAIL_URL`

The URL used by [`UserEmails`](../developer/app-store/legacy-plugins/user-emails).

Some examples:

| Description | URL |
| ------------------------- | ----------------------------------------------------------------------------- |
| Amazon SES | `smtp://username:password@email-smtp.us-east-1.amazonaws.com:587/?tls=True` |
| Gmail | `smtp://my.gmail.username@gmail.com:my-password@smtp.gmail.com:465/?ssl=True` |
| Mailgun | `smtp://username:password@smtp.mailgun.org:465/?ssl=True` |
| Mailjet | `smtp://username:password@in-v3.mailjet.com:587/?tls=True` |
| OVH | `smtp://username@example.com:my-password@pro1.mail.ovh.net:587/?tls=True` |
| SendGrid | `smtp://apikey:your.api.key@smtp.sendgrid.com:465/?ssl=True` |
| A SMTP server unencrypted | `smtp://username@example.com:my-password@smtp.example.com:25/` |

**Example:** `smtp://user:password@smtp.example.com:465/?ssl=True`

### `FEDERATED_QUERY_MAX_ENTITIES`

Sets upper limit on how many entities may be requested by Apollo Federation's gateway for a single GraphQL query. Defaults to `100`. Set to `0` to remove this limit.
Expand Down

0 comments on commit 9518691

Please sign in to comment.