# `EmailParser.Email`
[🔗](https://github.com/saasformula/email_parser/blob/v0.1.0/lib/email_parser/email.ex#L1)

A message with its attachments stripped: the header fields plus the bodies.

`text_body` is always plain text — a message that carries only HTML is
rendered to text. `html_body` is only set when the message actually carries
an HTML part.

# `t`

```elixir
@type t() :: %EmailParser.Email{
  headers: %{required(String.t()) =&gt; String.t()},
  html_body: String.t() | nil,
  text_body: String.t() | nil
}
```

---

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