cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter - For Outlook Client , Body is coming as attachment

Former Member
0 Kudos

I have a scenario where i send mail using proxy. It has a pdf attachment. But when received in outlook the body is shown as an attachment. I dont have problem sending to gmail or yahoo.

Have you faced a similar issue. ?

My Module config is shown below for receiver mail adapter

Processing Sequence

Number-----Module Name--


Module Key

1--


localejbs/AF_Modules/PayloadSwapBean--


s1

2--


localejbs/AF_Modules/MessageTransformBean--


t2

3--


localejbs/AF_Modules/PayloadSwapBean--


s1

4--


localejbs/AF_Modules/MessageTransformBean--


t1

5----


sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean- mail

Module Configuration

Key----Name--


Value

s2--


swap.keyName--


payload-name

s2--


swap.keyValue--


attachment1

t2--


Transform.ContentDisposition attachment;filename="file.pdf"

t2--


Transform.ContentType--


application/pdf

s1--


swap.keyName--


payload-name

s1--


swap.keyValue--


MainDocument

t1--


Transform.ContentDisposition inline

mail--


mime.contenttype--


multipart/mixed

Edited by: SEBIN B THOMAS on Jun 8, 2010 5:12 PM

Accepted Solutions (1)

Accepted Solutions (1)

sunil_singh13
Active Contributor
0 Kudos

Sebin,

Please refer SAP Note 810594 and 489848

Mail is sent via the SAPconnect SMTP interface.

The error occurs because the e-mails created by SAP have a first text body part that have the parameter "name" set for their MIME header "content-type". However, some mail clients interpret this "name" parameter in such a way that they display the body part as an attachment.

I think this is what Outlook is doing. May be implementing the correction in the note will solve the issue.

Thanks,

Sunil Singh

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Have you checked, that the mail is really multipart/mixed?

Former Member
0 Kudos

Stefan

We have pdf attachment with the mail.

Sunil

Mail adapter is in the Java Stack. The notes you mentioned refer to standard SAP Connect.