Hi,
Thanks for considering Aspose.
We have tested the code above. It ignores the 0 byte values if the type is "text/plain".
We are looking into this issue and the possibility of forcing all attachments as "binary/octet" and get back to you shortly.
I think you are receiving attachments from stream and adding it to the mail message.
Best Regards,
Saqib Razzaq
Support Developer
Aspose Guangzhou Team