So does anybody succeeded in attaching file to the mail in Windows?

Can I have sample code that is working in Windows for file attachment. As I am facing the same problem in Windows.

Thanks in advance.