# `Swoosh.Adapters.Mua.MultihostError`
[🔗](https://github.com/swoosh/swoosh/blob/v1.26.2/lib/swoosh/adapters/mua.ex#L107)

Raised when no relay is used and recipients contain addresses across multiple hosts.

For example:

    email =
      Swoosh.Email.new(
        to: {"Mua", "mua@github.com"},
        cc: [{"Swoosh", "mua@swoosh.github.com"}]
      )

    Swoosh.Adapters.Mua.deliver(email, _no_relay_config = [])

Fields:

  - `:hosts` - the hosts for the recipients, `["github.com", "swoosh.github.com"]` in the example above

# `t`

```elixir
@type t() :: %Swoosh.Adapters.Mua.MultihostError{
  __exception__: true,
  hosts: [Mua.host()]
}
```

# `message`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
