public function setAttachments($attachments) {
        /** @var AttachmentInterface $attachment */
        foreach ($attachments as $attachment) {
            $attachment->setMail($this);
        }

        $this->setData('attachments', $attachments);

        return $this;
    }