Add email attachment by passing file path
public addAttachmentFromFile ( string $name, string $path, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : boolean | ||
$name | string | The name of the file attachment as it will appear in the email |
$path | string | Path to the attachment file |
$mimeType | string | Specify custom MIME type |
$contentId | string | Content ID of the attachment for inclusion in the mail message |
$attachmentType | string | Attachment type: attachment or inline |
리턴 | boolean | Status of the operation |