Skip to Content
0
Former Member
May 30, 2005 at 06:28 AM

a question about mail attachment

59 Views

Hi, everybody.

I have met a question about mail attachment in ABAP.

According to some weblog, I will use SO_DOCUMENT_SEND_API1 to send mail with attachement.

But my question is , if I want to attach a text file in the mail, should I convert it to a binary internal table, and pass it to the 'CONTENTS_BIN'?

I have read some sample which attach a PDF or HTML in mail, but if it is a text file, how can I do with it?

Is there any function module can convert a text file or string to binary format?

Any suggestion is welcome, and hope for your reply

thanks a lot