Hmm. Please be patient, but I still don't get it. I need to receive the file in the mobile device. From what I understand, the old vb6 seems to send the file, but when it is received by the AST module, it is converted into some charset and the result doesn't look as a pdf file. The code you wrote seems to be intended to send files from the mobile.