# mail.bimi()

Canonical URL: https://developers.iagenify.com/sdk/ref/domain/mail/bimi/
Language: en

`domain.mail.bimi({ svg, vmc?, subdomain? }) → Promise<Result>`

Publishes the logo a receiver may show beside the domain's mail. It is gated twice, and the answer says plainly what it will not do without a certificate.

Status: needs an enforced policy · SVG Tiny PS · says what it cannot do

```javascript
const result = await domain.mail.bimi({ svg: bytes, vmc: "https://example.com/vmc.pem" });
// { host, published: true, logoUrl, vmc: false, warning: "…" }
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `svg` | Uint8Array | string | required | SVG Tiny PS: no script, no external image, 32 KB at most. |
| `vmc` | string | null | A certificate's address. |
| `subdomain` | string | null | Which host. |

## Two refusals, in that order {#gates}

| Refusal | Means |
| --- | --- |
| `public_url_missing` | The logo cannot be served publicly yet, so publishing the record would point at nothing. |
| `dmarc_not_enforced` | The policy is still observing. Harden it with [dmarc()](/sdk/ref/domain/mail/dmarc) first. |

> **That order is deliberate**
>
> Sending someone to harden their policy — which can break their mailing lists — for something we could not deliver anyway would be the worse failure. The deliverability problem is checked first.

## Without a certificate, the main receivers show nothing {#vmc}

> **The response says so rather than letting it be discovered**
>
> vmc: false comes back with a warning. A certificate requires a registered trademark and costs around a thousand dollars a year — which is the real gate, and worth knowing before the work is done.

## The image is constrained {#svg}

A restricted SVG profile: no script, no external reference, 32 KB at most. We host it and publish the record pointing at it — a stranger's mail receiver is what fetches it.

## It is the only control over what a recipient sees {#control}

Nothing in a message decides the circle beside a sender's name: the recipient's client draws it from its own data. A [signature](/sdk/ref/mailbox/update) can carry a picture inside the message, which is a different thing and always works.

- [mail.dmarc()](/sdk/ref/domain/mail/dmarc): The gate.
- [mailbox.update()](/sdk/ref/mailbox/update): A signature instead.

```python
result = domain.mail.bimi(svg=svg_bytes, vmc="https://example.com/vmc.pem")
# {"host", "published": True, "logoUrl", "vmc": False, "warning": "…"}
```
