If I understand the nautlius-sendto code correctly, it will try to run mailspring --attach=/path/to/filename.txt, wherease mailspring is expecting to be run as mailspring /path/to/filename.txt. Not sure, how the KDE implementation works (but probably similar).
I have an idea, how to tackle this and will have a look.
For reference: