Developer Function: Server Script: notification.Send
## Overview
Send notifications at any time using objects that get creation and setup information.
## Prerequisites
The target notification type (e.g., Mail) in ["Notification.json"](/manual/notification-json) must be set to true.
## Syntax
```
notification.Send()
```
## Return Value
If the notification was sent, it returns true; if not, it returns false.
## Usage Example
#### Email
In the following example, a notification will be sent to xxxxx@example.com with the subject "Notification Test" and the content "Notified by server script".
##### JavaScript
```
let notification = notifications.New();
notification.Address = 'xxxxx@example.com';
notification.Title = 'Notification Test';
notification.Body = 'Notified by server script.';
notification.Send();
```
#### Teams
The following example sends a notification to Teams. (Pre-settings are required to send notifications to Teams. For the "notification.Address" in the example below, please refer to the settings in the "Address" field in the manual "「Set up to send notifications to Microsoft Teams」".)
##### JavaScript
```
let notification = notifications.New();
notification.Type = 6; //Specify the Teams to notify
notification.Address = 'https://***/***'; //Specify the webhook URL for the Teams to notify
notification.Title = 'Notification Test';
notification.Body = 'Notified by server script.';
notification.Send();
```
#### Slack
The following example sends a notification to Slack. (Pre-settings are required to send notifications to Slack. For the "notification.Address" in the example below, please refer to the settings in the "Address" field in the manual "「Set up to send notifications to Slack」".)
##### JavaScript
```
let notification = notifications.New();
notification.Type = 2; //Specify Slack as the notification destination
notification.Address = 'https://hooks.slack.com/***';
notification.Title = 'Notification Test';
notification.Body = 'Notification from server script.';
notification.Send();
```
#### Chatwork
The following example sends a notification to Chatwork. (Pre-settings are required to send notifications to Chatwork. For "notification.Address" and "notification.Token" in the example below, please refer to the settings in the "Address" and Token" fields in the manual "「Set up to send notifications to Chatwork」".)
##### JavaScript
```
let notification = notifications.New();
notification.Type = 3 //Specify Chatwork as the notification destination
notification.Token = '***';
notification.Address = 'https://api.chatwork.com/***';
notification.Title = 'Notification Test';
notification.Body = 'Notification from server script.';
notification.Send();
```
## Notes
This is a method used in "[Server Script](/en/manual/table-management-server-script)". It cannot be used in "[Script](/en/manual/table-management-script)".
## Related Information
・[Table Management: Server Script](/manual/table-management-server-script)
・[Execution Timing for Each Object](/manual/server-script-conditions)
・[Notifications Object](/manual/server-script-notifications)
・[Notification Object](/manual/server-script-notification)
・[Notifications.New Method](/manual/server-script-notifications-new)
・[Notifications.Get Method](/manual/server-script-notifications-get)