Swoosh.Email.header
You're seeing just the function
header
, go back to Swoosh.Email module for more information.
Specs
Adds a new header
in the email.
The name and value must be specified as strings.
Examples
iex> new() |> header("X-Magic-Number", "7")
%Swoosh.Email{assigns: %{}, attachments: [], bcc: [], cc: [], from: nil,
headers: %{"X-Magic-Number" => "7"}, html_body: nil, private: %{},
provider_options: %{}, reply_to: nil, subject: "", text_body: nil, to: []}