Enable The Reminder Function of Pleasanter
## Notes
The procedure for activating reminders has changed since Pleasanter version 1.3.7.0. If you are using an older version, please check the settings for the older version below.
## Steps to enable the reminder function in Pleasanter version 1.3.7.0 or later
Change the parameter settings in "[BackgroundService.json](/en/manual/background-service-json)" and "[Service.json](/en/manual/service-json)". When changing parameters, please refer to the manual "[Confirmation When Changing Parameters](/en/manual/parameter-edit)".
#### BackgroundService.json
Refer to the manual "[Set Parameter: BackgroundService.json](/en/manual/background-service-json)" and change the settings in the BackgroundService.json file to the following settings.
|Column|e.g.|Description|
|:--|:--|:--|
|Reminder|true|Enable reminder function|
#### Service.json
Refer to the manual "[Set Parameter: Service.json](/en/manual/service-json)" and change the settings in the Service.json file to the following settings.
|Column|e.g.|Description|
|:--|:--|:--|
|AbsoluteUri|"http://pleasanter.example.local"|Please enter the first part of the URL to be displayed in notifications and reminders. (null is not allowed) |
-----
## How to enable the reminder function in older versions (Pleasanter 1.3.6 and earlier)
These are steps to register the script in the task scheduler to run the reminder.
# How to set up in Windows
## Install Script
Copy [Reminder.ps1](https://github.com/Implem/Implem.Pleasanter/blob/master/Implem.Pleasanter/Tools/Reminder.ps1)to D:\Tools or any other folder. Edit Reminder.ps1 with Notepad
Change the http://localhost/pleasanter/ part to the URL of Pleasanter that can be accessed by the client. For example, you can run the reminder even if you set it to http://localhost, but the URL of the record in the sent email will be http://localhost/, so you will not be able to access it from the client even if you click on the record link.
*If your environment is built on Azure, you must use Reminder.ps1 in the App Service web job registration, in which case, enable the commented-out process in the first line.
## Setup Task scheduler
Register the script in the Task Scheduler. On the task creation screen, make the following settings. After creating the task, right-click the task and run it.
|Item|Settings|Description|
|:--|:--|:--|
|Task Name|Reminder|Enter any name. |
|Run whether the user is logged on or not|Enabled|Runs even when logged off. |
|Trigger|At startup|Starts when the server starts. |
|Executable program|%SystemRoot%\System32\ WindowsPowerShell\v1.0\ powershell.exe|Runs PowerShell. |
|Add arguments|-ExecutionPolicy Bypass -Command ".\Reminder.ps1"|Script to be called from PowerShell. |
|Start|D:\Tools|Directory where Reminder.ps1 is located. |
|Time to stop task|Disable|Continues to run as a resident program. |
# How to set up on Linux
Open /web/pleasanter/Tools/Reminder.py and change the localhost part to a URL that can be accessed by the client.
```python
urllib.request.Request("http://192.168.11.100/reminderschedules/remind?NoLog=1")
```
Install "Python 3.6" which is required to run Reminder.
```bash
sudo dnf install -y python36
```
Setup cron for Reminder.py.
```bash
crontab -e
@reboot python3 /web/pleasanter/Tools/Reminder.py
```