Not a direct answer to your question, but a possible workaround you might want to consider:
I personally prefer sending attachment as Base64 encoded string instead of as attachment. I somehow never seem to get the attachment-technique to work. As you may already know CommunityCommons provides easy base64 encode/decode java actions.