Attachments
class Attachments
Supports attachment processing for MailerService.
Constants
| MIME_TYPES |
Array of supported mime types as uploads. |
Methods
Processes attachment if key labeled content is found.
Processes attachment if key labeled path is found.
Used to assemble array for attachment when content key is used.
Gets the values from the MIME_TYPES array.
Returns the MIME type for a given file extension.
Process attachments to be sent.
Details
at line 55
static protected Email
attach(array $attachment, Email $email)
Processes attachment if key labeled content is found.
at line 71
static protected Email
attachFromPath(array $attachment, Email $email)
Processes attachment if key labeled path is found.
at line 85
static array
content(EmailAttachments $attachment)
Used to assemble array for attachment when content key is used.
at line 104
static array
getAllowedMimeTypes()
Gets the values from the MIME_TYPES array.
at line 114
static string
mime(string $ext)
Returns the MIME type for a given file extension.
at line 124
static array
path(EmailAttachments $attachment)
Used to assemble array for attachment when path key is used.
at line 146
static Email
processAttachments(array $attachments, Email $email)
Process attachments to be sent.