The support endpoint for the app. Takes HTTP POST request and put it in the support backend.
- PHP 100%
|
|
||
|---|---|---|
| PHPMailer@f90510c59a | ||
| public | ||
| .gitignore | ||
| .gitmodules | ||
| config.json.sample | ||
| LICENSE | ||
| README.md | ||
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 -
keynot found - 500 - Internal server error, may be PHPMailer dysfunction.
install
- Clone the repository in the web path and make the folder
publicweb accessible. - Get the submodules with
git submodule update --init --recursivein the main directory. - Copy
config.json.sampletoconfig.jsonand 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 -
tlsorssl, see PHPMailer doku