Swoosh v0.8.1 Swoosh.Attachment
Struct representing an attachment in an email.
Summary
Functions
Creates a new Attachment
Types
Functions
new(path, opts \\ [])
new(binary, Keyword.t) :: %Swoosh.Attachment{content_type: term, filename: term, path: term}
Creates a new Attachment
Examples:
Attachment.new("/path/to/attachment.png")
Attachment.new("/path/to/attachment.png", filename: "image.png")
Attachment.new("/path/to/attachment.png", filename: "image.png", content_type: "image/png")
Attachment.new(params["file"]) # Where params["file"] is a %Plug.Upload