i am developing a function where i must able to send an email with PDF attachment.

now i can send email with attachment to a person. but the receipient could not be able to open the attachment from the email. The adobe reader giving error when the receipient open the attachment. The error is (it was sent as an email attachment and wasn't correctly decoded).