Attachment¶
-
class
OC\Mail\
Attachment
¶ - Class Attachment
Source: lib/private/Mail/Attachment.php#38 Implements: OCP\Mail\IAttachment
Properties¶
-
protected static property
OC\Mail\Attachment::$
swiftAttachment
¶ Source: lib/private/Mail/Attachment.php#41 Type: \Swift_Mime_Attachment
Methods¶
-
public
OC\Mail\Attachment::
__construct
($attachment)¶ Source: lib/private/Mail/Attachment.php#43
-
public
OC\Mail\Attachment::
setFilename
($filename)¶ Source: Parameters: - $filename (string)
Returns: $this
Since: 13.0.0
-
public
OC\Mail\Attachment::
setContentType
($contentType)¶ Source: Parameters: - $contentType (string)
Returns: $this
Since: 13.0.0
-
public
OC\Mail\Attachment::
setBody
($body)¶ Source: Parameters: - $body (string)
Returns: $this
Since: 13.0.0
-
public
OC\Mail\Attachment::
getSwiftAttachment
()¶ Source: lib/private/Mail/Attachment.php#80 Returns: \Swift_Mime_Attachment