attachment file is trunscated why I send it by mail


I try to send an email with 2 attachment files using pub.client:smtp service.
The first attachment file is an html document and the second one can be every thing (a document word , pdf, …)

My problem : The second file is truncated after fiew bytes. How to do to receive a complet file?