Skip to content

Commit

Permalink
Example configuration consistent with kratos configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Strawson authored Jul 25, 2023
1 parent 7f2cc35 commit c851e7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/kratos/self-hosted/03_mail-courier-http.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ configurable using options below.

## Configuration

Default configuration doesn't use API calls to send mail. To enable it you need to set the "email.strategy" flag to "http", sender
Default configuration doesn't use API calls to send mail. To enable it you need to set the "delivery_strategy" flag to "http", sender
URL, authorization (if needed) and request body format. (if needed) and request body format.

### Request configuration

```yaml title="config.yml"
courier:
email:
strategy: http
delivery_strategy: http
http:
request_config:
url: https://api.crm.com/email
method: POST
body: file://.mail.api.request.jsonnet
header:
headers:
"Content-Type": "application/json"
auth:
type: basic_auth
Expand Down

0 comments on commit c851e7a

Please sign in to comment.