public addAttachmentFromData ( string $name, string $data, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : SimpleEmailServiceMessage | ||
$name | string | The name of the file attachment as it will appear in the email |
$data | string | The contents of 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 |
return | SimpleEmailServiceMessage | $this |