cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Mail Adapter - attachment and content is sent as attachments in mail

Deepak_sap2211
Participant
0 Kudos

Hi Experts,

Good day..!!

Am facing some issue while sending the mail with content and attachment.

The content(body) and the attachment file are sent in mail as attachments only.

Interface Flow :

SOAP --> PI(7.31 dual stack) -->Mail

Receiver Mail adapter setting:

     transport protocol  = SMTP

     message protocol = XIPAYLOAD

     Use mail package and keep attachments are checked

Scenario :

Whenever the data is sent from the webservice, some trasformation is done and the data is sent to the "CONTENT" field as HTML format.

So, the below values are passed.

               CONTENT TYPE --> text/html;charset="UTF-8"

               CONTENT DISPOSITION --> inline

If an attachment is sent along with the actual message,that has to be passed as an attachment in the mail,as it is.

Issue :

     If a message is sent from the webservice without an attachment , this setting works fine (am getting the mail with body in HTML format)

     But if an attachment(.csv format) is also sent (with actual message) from the webservice,am getting a mail with empty mail body and two attachments (attachment.csv and main document).

Please assist me with a resolution.

View Entire Topic
former_member216164
Participant
0 Kudos

Deepak,

Develop your interface by referring following blog. It worked just fine for me.

Thanks,

Avinash

Deepak_sap2211
Participant
0 Kudos

Hi Avinash,

I tried this blog already.

This works fine if the mail content(body) is TEXT/PLAIN type. But my requirement is TEXT/HTML for body and .CSV for attachment.

With Regards,

Deepak