FileProperty
public struct FileProperty
Properties when the attachment is a file.
-
Path in the local disk of the file.
Declaration
Swift
public let path: String -
MIME type of the file.
Declaration
Swift
public let mime: String -
File name which will be presented in the mail.
Declaration
Swift
public let name: String -
Whether the file could be inline or not. When set to
true, the attachment “Content-Disposition” header will beinline, otherwise it will beattachment.Declaration
Swift
public let inline: Bool -
Initilize a file property.
Declaration
Swift
public init(path: String, mime: String, name: String, inline: Bool)Parameters
pathFile path.
mimeMIME type of the file.
nameFile name which will be presented in the mail.
inlineWhether the file could be inline or not. When set to
true, the attachment “Content-Disposition” header will beinline, otherwise it will beattachment.
View on GitHub
Install in Dash
FileProperty Struct Reference