cancel
Showing results for 
Search instead for 
Did you mean: 

error while sending mail with pdf attachment

Former Member
0 Kudos

Dear All,

I am sending mail to outlook Internet address, with PDF attachment, if i have the some text in the mail along with the attachment,

then the PDF attachment file is not opeining, throws file corrupted error.

If i don't have the text for mail body, and send only attachment then the PDF attachments working fine.

Please help.

regards,

Kumar.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kumar,

If you are using the th FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send the PDF data(As an attachment) to an internet address, try prepare an internal table with the text you want to mention in your mail. This table needs to be passed to the

'contents_txt' of this function module. You can check your mail in SOST transaction and in DOC Content section.

Ex: wa_objtxt = 'Regards'.

APPEND wa_objtxt TO t_objtxt.

I am sure that you won't get any problem if you follow the procedure mentioned above.

Thank You,

Regards,

Naresh.