public function attachmentData($data, $name, array $options = []) { $attachment = $this->createAttachmentViaData($data, $name); return $this->prepareAttachment($attachment, $options); }