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
path
File path.
mime
MIME type of the file.
name
File name which will be presented in the mail.
inline
Whether the file could be inline or not. When set to
true
, the attachment “Content-Disposition” header will beinline
, otherwise it will beattachment
.