Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vinckr authored Aug 24, 2023
1 parent 74a09ea commit 131b3cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/kratos/emails-sms/01_sending-emails-smtp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ smtp://{YOUR_POSTMARK_SEVER_API_TOKEN}:{YOUR_POSTMARK_SEVER_API_TOKEN}@smtp.post
## Send emails using an HTTP server

Ory Identities supports sending emails using an HTTP server. This is useful if you want to customize the email content or use a
service that does not provide an SMTP server.
service that doesn't provide an SMTP server.
```mdx-code-block
<Tabs groupId="console-or-cli-http-email">
Expand Down Expand Up @@ -171,7 +171,7 @@ service that does not provide an SMTP server.
body: base64://... # See below for the default payload and available variables
headers:
Content-Type: application/json
auth: # leave out, if your server does not require authentication, but note that we do not recommend that
auth: # leave out, if your server doesn't require authentication, but note that we don't recommend that
type: basic_auth # or api_key
config:
username: my-username
Expand All @@ -190,7 +190,7 @@ service that does not provide an SMTP server.
### Payload
The payload of the HTTP request is a JSON object that is generated using a Jsonnet template. By default, the following payload is
The payload of the HTTP request is a JSON object that's generated using a Jsonnet template. By default, the following payload is
sent:

```jsonnet
Expand All @@ -211,14 +211,14 @@ The courier passes the `Recipient`, `TemplateType`, and `TemplateData` variables
available through the `ctx` object. `Recipient` will always be the email address of the user. `TemplateType` and the fields in
`TemplateData` are linked in the following way with each template type containing the fields listed below:
This will produce a JSON object, that contains all data, that is available in the email. You can customize the payload
This will produce a JSON object, that contains all data available in the email. You can customize the payload
```mdx-code-block
</TabItem>
<TabItem value="console" label="Ory Console (coming soon)" disabled>
```
The Ory Console does not support configuring this yet. Please use the Ory CLI instead.
The Ory Console doesn't support configuring this yet. Please use the Ory CLI instead.
```mdx-code-block
</TabItem>
Expand Down
4 changes: 2 additions & 2 deletions docs/kratos/self-hosted/03_mail-courier-http.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ title: HTTP based email delivery
sidebar_label: Sending emails via HTTP API
---

For sending emails by using an external mail provider instead of a local SMTP server, Ory Kratos can use an HTTP API (such as
To send emails using an external mail provider instead of a local SMTP server, Ory Kratos can use an HTTP API (such as
Mailchimp, your local mail sender, or your own microservice). Request method, headers, body, and content-type are fully
configurable using the options below.

## Configuration

By default, Ory Kratos doesn't use API calls to send mail. To enable it please set the `delivery_strategy` configuration key to
By default, Ory Kratos doesn't use API calls to send mail. To enable it set the `delivery_strategy` configuration key to
`http`, URL, authorization (if needed) and request body format.

### Request configuration
Expand Down

0 comments on commit 131b3cb

Please sign in to comment.