Swoosh.Email.to
You're seeing just the function
to
, go back to Swoosh.Email module for more information.
Specs
to(t(), Swoosh.Email.Recipient.t() | [Swoosh.Email.Recipient.t()]) :: t()
Adds new recipients in the to
field.
Examples
iex> new() |> to("steve.rogers@example.com")
%Swoosh.Email{assigns: %{}, attachments: [], bcc: [],
cc: [], from: nil, headers: %{}, html_body: nil,
private: %{}, provider_options: %{}, reply_to: nil, subject: "",
text_body: nil, to: [{"", "steve.rogers@example.com"}]}