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 86
static array
content(EmailAttachments $attachment)
Used to assemble array for attachment when content key is used.
at line 105
static array
getAllowedMimeTypes()
Gets the values from the MIME_TYPES array.
at line 115
static string
mime(string $ext)
Returns the MIME type for a given file extension.
at line 126
static array
path(EmailAttachments $attachment)
Used to assemble array for attachment when path key is used.
at line 148
static Email
processAttachments(array $attachments, Email $email)
Process attachments to be sent.