• PHP reference
  • Services
  • Email

Attachment

class Services\Email\Attachment

Class Attachment

Methods

string getContent()

Return Value

  • string

Attachment setContent(string $content)

Parameters

  • string $content

Return Value

string getMime()

Return Value

  • string

Attachment setMime(string $mime)

Parameters

  • string $mime

Return Value

string getFilename()

Return Value

  • string

Attachment setFilename(string $filename)

Parameters

  • string $filename

Return Value

string getDisposition()

Return Value

  • string

Attachment setDisposition(string $disposition)

Parameters

  • string $disposition

Return Value

static Attachment fromFile(string $path)

Parameters

  • string $path

Return Value

static Attachment fromString(string $content, string $filename = null, string $mime = null)

Parameters

  • string $content
  • string $filename
  • string $mime

Return Value