# update()

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/mailbox/update/
Language: pt

`mailbox.update({ name?, catchAll?, image?, signature? }) → Promise<Mailbox>`

Cambia il nome display, il cap-todo, la foto o la firma.

Status: PATCH · image: null returns to the account's · signature is sanitised

```javascript
await box.update({ name: "Support" });
await box.update({ image: { data: bytes, type: "image/png" } });   // its own picture
await box.update({ image: null });                                  // back to the account's
await box.update({ signature: { html: "<p>Support — example.com</p>", image: true } });
await box.update({ signature: null });                              // remove it
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string |  | Il nome display. |
| `catchAll` | boolean |  | Adrese sconosciutes sul terreno de host aqui. |
| `image` | object|null |  | `{ data, type }`. `null` retorna a foto del compte — **non a iniciales**. |
| `signature` | object|null |  | `{ html, image }`. `image: true` inlines la foto de la caixa de correio. |

## La foto {#image}

`data` prende bytes, base64 o un indirizzo dati completo. Due megabytes, no máximo, in formatos d'image usual. Impostazione `null` restituisce a foto del compte, che è la predefinizione sensata, e non nada.

La foto del conto è copiata una vez nel stoccaggio del conto proprio, piuttosto que render da oriund'e vende — una pagina non deve depende de un terciont per un cerchio, e nulla fuori deve aprender quante frequent il cliente lee la posta.

## La firma è sanitized in scriva {#signature}

> **Nessun script, nessun manegnatore, nessuna immages de fondo**
>
> Una immagine di fondo in una firma è un pixel di tracciamento in ogni messaggio che il cliente envia. Il HTML è ridotto a un set permis quando è salvat, non quando è usat.

## Image: vero è como una foto raggiunge un destinatario {#image-in-signature}

Viaja dentro del messaggio, invece di ser recuperat, quindi mostra senza «carregar immagini remotas».Nessun messaggio controla il cerchio del client del destinatario disegna a fianco del nome del remettor — una firma è la parte che tu controli.

## catch-all ha un limite {#catchall}

Existe solo a apè. In un subdominio è negatêt anziché memorèt ca un setuo no vale.

- [send()](/pt/sdk/ref/mailbox/send): Quando la firma è usata.
- [contacts.save()](/pt/sdk/ref/mail/contacts/save): Una foto per un corespondente.

```python
box.update(name="Support")
box.update(image={"data": png_bytes, "type": "image/png"})   # its own picture
box.update(image=None)                                        # back to the account's
box.update(signature={"html": "<p>Support — example.com</p>", "image": True})
box.update(signature=None)                                    # remove it
```
