Swoosh.Email.text_body
You're seeing just the function
text_body
, go back to Swoosh.Email module for more information.
Specs
Sets the text_body
field.
The text body must be a string that containing the plaintext content.
Examples
iex> new() |> text_body("Hello")
%Swoosh.Email{assigns: %{}, attachments: [], bcc: [],
cc: [], from: nil, headers: %{}, html_body: nil,
private: %{}, provider_options: %{}, reply_to: nil, subject: "",
text_body: "Hello", to: []}