Parses a mailto URL
mailto
Parse a URI with the :scheme of "tel"
:scheme
t() :: %URL.Mailto{params: map(), to: [binary(), ...]}
parse(URI.t()) :: t() | {:error, {module(), binary()}}
iex> mailto = URI.parse("mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO") iex> URL.Mailto.parse(mailto) %URL.Mailto{ params: %{"body" => "NATTO", "subject" => "Test"}, to: ["user@納豆.example.org"] }