> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v81/llms.txt)

# Restore Default SMTP

> DELETE /email_settings/smtp
> 
> Removes the server's custom SMTP host, from address, user name and password, so email alerts go out through the server default again. The subject and footers are not changed. Calling it on a server without custom SMTP settings succeeds and changes nothing.
> 
> ### Authorization
> 
> Same as `GET /email_settings`: internal API clients only; COMPANY or SERVER users on a ZWS-integrated server, SERVER users only otherwise.



## Servers
- https://api.iformbuilder.com/exzact/api/v81/[servername]: https://api.iformbuilder.com/exzact/api/v81/[servername]


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}





## Responses
### 200
OK - the custom SMTP settings were removed. The body is the updated settings, in the same shape as `GET`.

#### Body: application/json (object)
- **custom** (boolean)
  `true` when the server has its own SMTP settings; `false` when alerts use the server default

- **host** (string | null)
  the SMTP host; `null` when not set

- **from_address** (string | null)
  the sender address of alert email; `null` when not set

- **username** (string | null)
  the SMTP user name; `null` when not set

- **password_set** (boolean)
  `true` when a non-empty SMTP password is stored

- **subject** (string)
  the subject of an alert whose form sets none

- **footer** (string)
  the first footer of alert email

- **footer2** (string)
  the second footer of alert email


### 401
Unauthorized - missing or invalid bearer token.

### 403
Forbidden - the client is not internal, or the user's role is not allowed (see Authorization).


[Powered by Bump.sh](https://bump.sh)
