Swoosh.Email.subject

You're seeing just the function subject, go back to Swoosh.Email module for more information.

Specs

subject(t(), subject()) :: t()

Sets the subject field.

The subject must be a string that contains the subject.

Examples

iex> new() |> subject("Hello, Avengers!")
%Swoosh.Email{assigns: %{}, attachments: [], bcc: [],
 cc: [], from: nil, headers: %{}, html_body: nil,
 private: %{}, provider_options: %{}, reply_to: nil, subject: "Hello, Avengers!",
 text_body: nil, to: []}