The support endpoint for the app. Takes HTTP POST request and put it in the support backend.
Find a file
jan fb0ef97ea8 typo
Corrected typo in variable $logMessage in line 28
2026-03-31 04:26:47 +00:00
PHPMailer@f90510c59a code written 2026-02-19 14:38:00 +01:00
public typo 2026-03-31 04:26:47 +00:00
.gitignore code written 2026-02-19 14:38:00 +01:00
.gitmodules code written 2026-02-19 14:38:00 +01:00
config.json.sample code written 2026-02-19 14:38:00 +01:00
LICENSE Initial commit 2026-02-19 12:37:26 +00:00
README.md updated readme 2026-02-19 15:33:30 +01:00

support

The support endpoint for the app. Takes HTTP POST request and put it in the support backend.

usage

Do an HTTP POST request with the following parameters:

  • message - The message. May use html.
  • subject - The e-mail subject.
  • key - A valid key, see config.

http response codes

  • 200 - OK
  • 400 - parameters not set or empty
  • 401 - key not found
  • 500 - Internal server error, may be PHPMailer dysfunction.

install

  • Clone the repository in the web path and make the folder public web accessible.
  • Get the submodules with git submodule update --init --recursive in the main directory.
  • Copy config.json.sample to config.json and edit the parameters as needed, see the config section.

config

The config.json file with the following parameters:

  • keys - An array of verification keys.
  • to - The receiving e-mail.
  • smtp_mail - The SMTP mail used for sending.
  • smtp_pass - The SMTP password used for sending.
  • smtp_host - The SMTP host used for sending.
  • smtp_port - The SMTP port used for sending.
  • smtp_secure - tls or ssl, see PHPMailer doku