On Linux the xdg email portal requires clients to
support mailto: URIs following RFC 2368, with “cc”, “bcc”, “subject” and “body” query keys each corresponding to the email header of the same name, and with each attachment being passed as a file:// URI as a value in an “attachment” query key
currently running
thunderbird mailto:?subject=&body=&attachment=/home/user/path/to/document.txt
does open a new email editor but without document.txt attached. This also means other applications using the xdg email portal cannot create emails for composition with attachments.
This feature would be great to have so document editors could have a function to send the document via mail for example.
The xdg email portal is documented here: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Email.html