Project

General

Profile

Feature #396

Sähköpostin lähettäminen - SMTP asetukset

Added by Lari Taskula 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
07.01.2021
Due date:
% Done:

0%

Estimated time:

Description

SMTP-palvelinasetukset Okapi:n kautta

SMTP host & port

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",
     "description": "server smtp host",
     "default": true,
     "enabled": true,
     "value": "mail.runbox.com" 
   }'
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",
     "description": "server smtp port",
     "default": true,
     "enabled": true,
     "value": "587" 
   }'

SMTP käyttäjätunnus ja salasana

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",
     "description": "email username",
     "default": true,
     "enabled": true,
     "value": "no-reply@hypernova.fi" 
   }'
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_PASSWORD",
     "description": "email password",
     "default": true,
     "enabled": true,
     "value": "XXXXXXXXXXXXX" 
   }'

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

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",
     "description": "email from",
     "default": true,
     "enabled": true,
     "value": "folio@hypernova.fi" 
   }'

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

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",
     "configName": "FOLIO host",
     "code": "FOLIO_HOST",
     "description": "FOLIO host address for password reset",
     "default": true,
     "enabled": true,
     "value": "https://your-folio-base-url" 
   }'

History

#1

Updated by Lari Taskula 11 months ago

  • Subject changed from Emailing in FOLIO - SMTP to Sähköpostin lähettäminen - SMTP asetukset
#2

Updated by Lari Taskula 11 months ago

  • Description updated (diff)
#3

Updated by Lari Taskula 11 months ago

  • Description updated (diff)

Also available in: Atom PDF