How to make the currently opened doc in the doceditor as attachment of the mail?
Hello @softboy99
It is important to understand that Document Server does not provide file to the plugin, Document Server only communicates with storage in terms of file management. Considering this, plugin cannot access the file without making a call to the storage in the first place, but here is a tricky part: in the moment of editing the file is not yet saved back to the storage with latests changes, so making call to a storage to get file without using forcesave beforehand, would cause sending of the file with no latest changes.
Natively Document Server does not have such methods for sending emails from plugin, so I must be custom implementation for that.