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:

lib/private/Mail/Attachment.php#52

Parameters:
  • $filename (string)
Returns:

$this

Since:

13.0.0

public OC\Mail\Attachment::setContentType($contentType)
Source:

lib/private/Mail/Attachment.php#62

Parameters:
  • $contentType (string)
Returns:

$this

Since:

13.0.0

public OC\Mail\Attachment::setBody($body)
Source:

lib/private/Mail/Attachment.php#72

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