> For the complete documentation index, see [llms.txt](https://tk-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk-scripts.gitbook.io/docs/tk_laptop/exports/server.md).

# Server

## showNotification

```lua
exports.tk_laptop:showNotification(data)
```

Shows a notification on the laptop

* data: `table`
  * playerId: `number`
  * title: `string`
  * message: `string`
  * type: `'inform'` `'success'` `'error'`

## addEmail

```lua
exports.tk_laptop:sendEmail(data)
```

Sends an email from given address to given address (this is **not** a temporary email)

* data: `table`
  * subject: `string`
  * body: `string`
  * from: `string`
  * to: `string`

## getPlayerEmailAddress

```lua
exports.tk_laptop:getPlayerEmailAddress(identifier)
```

Returns player's current email address

* identifier: `string` `number`
* Return:
  * emailAddress?: `string`
