struct
Amber::Mailer::Attachment
- Amber::Mailer::Attachment
- Struct
- Value
- Object
Overview
Represents a file attachment to be included in an email message.
Attachments are encoded as base64 in the MIME message body and included as separate MIME parts with appropriate Content-Disposition headers.
Example
attachment = Attachment.new(
filename: "report.pdf",
content: File.read("report.pdf").to_slice,
mime_type: "application/pdf"
)
Defined in:
amber/mailer/email.crConstructors
Instance Method Summary
- #content : Bytes
- #content=(content : Bytes)
- #filename : String
- #filename=(filename : String)
- #mime_type : String
- #mime_type=(mime_type : String)