Quantcast
Channel: SCN : Popular Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 971

How to Attach the payload using Mail Attribute in receiver Mail adapter

$
0
0

Hi All.

 

Scanario: SFTP to Mail adapter.

 

My requirement is whenever file comes i need to send the same file as attachment with the same file name using MAIL adapter. and the body of the content should be like as below.


" Dear Team XXXX has been placed to SFTP please check, here XXXX = same file name which we received from SFTP".


present set up.

 

1. I enabled  "Use mail package" option in receiver MAIL CC.

      so with out enabling "Keep Attachment" this setup working fine and i can able to see above mentioned content of the body. to read the file name we used the UDF at mapping level.

 

but when ever i do select "Keep Attachment" my body of the content is attached as a attachment of the mail.

 

can you please guide further.

 

mapping


m1.PNG


udf used for getting File name.

m2.PNG

configuration

m3.PNG


m4.PNG

note: both side ASMA is enabled

 

output

m5.PNG

note: this attachment is not the one which i received from SFTP, this attachment is actually body of the content.



hope i given some inputs to  analysis this issue.


finally i need attachment as well as body of the content.


please help further.


Regards

Ramesh.



Viewing all articles
Browse latest Browse all 971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>