# SB_NOTICE_SEND

Sends out the group notice.

## Command usage

```csharp
llMessageLinked(LINK_SET, SB_NOTICE_SEND, string str, key id);
```

## API parameters

`llMessageLinked` function accepts `str` and `id` parameters. Their meaning for `SB_NOTICE_SEND` is explained below:

| Variable | Required | Description |
|----------|----------|-------------|
| str      | yes      | First line — notice subject<br>Rest of the string — notice text. |
| id       | yes      | Attachment inventory ID (optional) |

## Comments

This command delivers the notice to the group, accompanied with an optional attachment:

```csharp
key inventoryID = "b38b71a1-60a6-b109-75f2-8a22f68e7851";

llMessageLinked(LINK_SET, SB_NOTICE_SEND,
  "This is a subject line" + "\n" +
  "This is a body,\nprobably multiline",
  inventoryID);
```

## Using attachments

The notice attachment UUID can be copied from the bot's inventory in your SmartBots account:


1. Open your SmartBots account dashboard
2. Click the **"auto notices"** link for your group
3. Go to the **"Inventory"** tab
4. Locate your item and click **"inventory UUID: click to show"**

## Important notes

### 1. Subject and text limitations

* **Subject**: Latin letters and numbers only; max length: **254 single-byte characters**
* **Text**: May include international characters; max length: **512 bytes**  
  See Second Life wiki for more details.

### 2. Attachment permissions

Your bot must have both **Copy** and **Transfer** permissions to send attachments.  
("Next owner permissions" can be set to any value.)

Permissions can be verified and changed on the Inventory page.

## Example

```csharp
key inventoryID = "b38b71a1-60a6-b109-75f2-8a22f68e7851";

llMessageLinked(LINK_SET, SB_NOTICE_SEND,
  "This is a subject line" + "\n" +
  "This is a body,\nprobably multiline",
  inventoryID);
```