Mailtrap.Email.Attachment (mailtrap v0.2.0)
Attachment struct
Summary
Functions
Builds Attachment struct
Puts content_id to the attachment struct.
Puts disposition to the attachment struct.
Puts type to the attachment struct
Types
Functions
Builds Attachment struct
Puts content_id to the attachment struct.
Examples
iex> attachment = Mailtrap.Email.Attachment.build("content", "filename") iex> Mailtrap.Email.Attachment.put_content_id(attachment, "abcdef") %Mailtrap.Email.Attachment{
content_id: "abcdef",
filename: "filename",
content: "Y29udGVudA=="}
Puts disposition to the attachment struct.
Examples
iex> attachment = Mailtrap.Email.Attachment.build("content", "filename") iex> Mailtrap.Email.Attachment.put_disposition(attachment, "inline") %Mailtrap.Email.Attachment{
disposition: "inline",
filename: "filename",
content: "Y29udGVudA=="}
Puts type to the attachment struct
Examples
iex> attachment = Mailtrap.Email.Attachment.build("content", "filename") iex> Mailtrap.Email.Attachment.put_type(attachment, "text/plain") %Mailtrap.Email.Attachment{
type: "text/plain",
filename: "filename",
content: "Y29udGVudA=="}