# `Unicom360.Email.SendResult`
[🔗](https://github.com/TechRode-Solution-Limited/unicom360-elixir/blob/v0.1.0/lib/unicom360/email/send_result.ex#L1)

The result of `Unicom360.Email.send/3` (canonical name `EmailSendResult`).

  * `api_reference`, `message` - from the envelope.
  * `results` - one `Unicom360.Email.Result` per recipient, **in the gateway's order, which is
    not the request's order past the tenth recipient**.
  * `raw`, `extra` - the JSON object, and the members this version does not model.

# `t`

```elixir
@type t() :: %Unicom360.Email.SendResult{
  api_reference: String.t() | nil,
  extra: map(),
  message: String.t() | nil,
  raw: map(),
  results: [Unicom360.Email.Result.t()]
}
```

# `accepted`

```elixir
@spec accepted(t()) :: [Unicom360.Email.Result.t()]
```

The results the gateway accepted (status exactly `"ACKNOWLEDGED"`), in response order.

# `by_address`

```elixir
@spec by_address(t(), String.t()) :: Unicom360.Email.Result.t() | nil
```

The first result for `address`, or `nil`. Ignores case and surrounding white space.

# `invalid`

```elixir
@spec invalid(t()) :: [Unicom360.Email.Result.t()]
```

Every other result (for example `"Invalid email address"`), in response order.

---

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