Koha/api/v1/swagger/definitions/smtp_server.yaml
Kyle Hall 26d1e6540d
Bug 27424: Add ability to specify an SMTP server in the database as the default server
Bug 22343 adds the ability to defined SMTP servers via the UI; But to then utilise them you have to go to each individual library via the libraries admin area and select the SMTP server.

We should have a way to override the fallback/default SMTP server right from the SMTP servers administration page.. setting one of our defined SMTP Servers as the system default rather than using the hard coded fallback options.

Test Plan:
1) Apply this patch set
2) Restart all the things!
3) Browser to the SMTP servers editor,
   verify only one server can be set as the default server
4) Set a default server, verify that server was used to send email from
   a cronjob, AND/OR prove t/db_dependent/Koha/SMTP/Server.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-01-31 10:52:48 -03:00

45 lines
986 B
YAML

---
type: object
properties:
smtp_server_id:
type: integer
description: Internal SMTP server identifier
readOnly: true
name:
type: string
description: Name of the SMTP server
host:
type: string
description: SMTP host name
port:
type: integer
description: TCP port number
timeout:
type: integer
description: Maximum time in seconds to wait for server
ssl_mode:
type: string
enum:
- disabled
- ssl
- starttls
description: If SSL/TLS will be used
user_name:
type:
- string
- "null"
description: The user name to use for authentication (optional)
password:
type:
- string
- "null"
description: The password to use for authentication (optional)
debug:
type: boolean
description: If the SMTP connection is set to debug mode
is_default:
type: boolean
description: Is this the default SMTP server
additionalProperties: false
required:
- name