Project

General

Profile

Feature #396

Updated by Lari Taskula about 2 years ago

h1. SMTP-palvelinasetukset Okapi:n kautta

h2. SMTP host & port
Configuration via Okapi

<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "SMTP_SERVER",
"configName": "smtp",
"code": "EMAIL_SMTP_HOST", "EMAIL_PASSWORD",
"description": "server smtp host", "email password",
"default": true,
"enabled": true,
"value": "mail.runbox.com" "XXXXXXXXXXXXX"
}'
</pre>



<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "SMTP_SERVER",
"configName": "smtp",
"code": "EMAIL_SMTP_PORT", "EMAIL_USERNAME",
"description": "server smtp port", "email username",
"default": true,
"enabled": true,
"value": "587" "no-reply@hypernova.fi"
}'
</pre>

h2. SMTP käyttäjätunnus ja salasana



<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "SMTP_SERVER",
"configName": "smtp",
"code": "EMAIL_USERNAME", "EMAIL_FROM",
"description": "email username", from",
"default": true,
"enabled": true,
"value": "no-reply@hypernova.fi" "folio@hypernova.fi"
}'
</pre>



<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "SMTP_SERVER", "USERSBL",
"configName": "smtp", "FOLIO host",
"code": "EMAIL_PASSWORD", "FOLIO_HOST",
"description": "email password", "FOLIO host address for password reset",
"default": true,
"enabled": true,
"value": "XXXXXXXXXXXXX" "https://your-folio-base-url"
}'
</pre>

h2. From-sähköpostiheaderi (lähettäjän sähköpostiosoite)

<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "SMTP_SERVER",
"configName": "smtp",
"code": "EMAIL_FROM", "EMAIL_SMTP_HOST",
"description": "email from", "server smtp host",
"default": true,
"enabled": true,
"value": "folio@hypernova.fi" "mail.runbox.com"
}'
</pre>

h2. Base URL sähköpostin resetointilinkkiin (jos ei aseteta, niin oletus on http://localhost:3000)



<pre>
curl -X POST \
http://localhost:9130/configurations/entries \
-H 'Content-Type: application/json' \
-H 'X-Okapi-Tenant: diku' \
-H 'x-okapi-token: XXXXXXXXXXXXX' \
-d \
'{
"module": "USERSBL", "SMTP_SERVER",
"configName": "FOLIO host", "smtp",
"code": "FOLIO_HOST", "EMAIL_SMTP_PORT",
"description": "FOLIO host address for password reset", "server smtp port",
"default": true,
"enabled": true,
"value": "https://your-folio-base-url" "587"
}'
</pre>

Back