---
title: "update smtp config"
method: PUT
path: "/answer/admin/api/setting/smtp"
tags: ["admin"]
---

# update smtp config

`PUT /answer/admin/api/setting/smtp`

update smtp config

## Request body

- SchemaUpdateSMTPConfigReq
  - `encryption` 'SSL' | 'TLS' — "" SSL TLS
  - `from_email` string
  - `from_name` string
  - `smtp_authentication` boolean
  - `smtp_host` string
  - `smtp_password` string
  - `smtp_port` integer
  - `smtp_username` string
  - `test_email_recipient` string

## Response `200`

OK

- HandlerRespBody
  - `code` integer — http code
  - `data` unknown
  - `msg` string — response message
  - `reason` string — reason key

---

[API](https://skmtc.net/apache/apis/apache-answer.md) · [All operations](https://skmtc.net/apache/apis/apache-answer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apache/apache-answer/versions/e9c2980e6571/schema)
