Empty attachment file sended by mail

Hi,

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 ond can be a document word , pdf, …

My problem : I just receive an empty file. I think the file is truncate after fiew bytes.
How to do to receive a complet file?

Thank’s