Skip to content

Core\Mail\Attachment

A file that is sent with a message, or an image that is shown inside its HTML. Pass it in the attachments option of Core\Mail::send.

Members

9 members.

MemberSignature
fromFilefromFile(string $path, { name?: string, type?: string }): Core\Mail\Attachment
fromBytesfromBytes(string $name, string|bytes $data, { type?: string }): Core\Mail\Attachment
inlineFileinlineFile(string $path, { type?: string }): Core\Mail\Attachment
inlineBytesinlineBytes(string $name, string|bytes $data, { type?: string }): Core\Mail\Attachment
srcsrc(): string
namename(): ?string
typetype(): string
bytesbytes(): bytes
isInlineisInline(): bool