Phalcon\Mailer\Message::attachmentData PHP Method

attachmentData() public method

Attach in-memory data as an attachment.
See also: Phalcon\Mailer\Message::createAttachmentViaData()
See also: Phalcon\Mailer\Message::prepareAttachment()
public attachmentData ( string $data, string $name, array $options = [] ) : Message
$data string
$name string
$options array optional
return Message
    public function attachmentData($data, $name, array $options = [])
    {
        $attachment = $this->createAttachmentViaData($data, $name);
        return $this->prepareAttachment($attachment, $options);
    }