cancel
Showing results for 
Search instead for 
Did you mean: 

File to Mail Scenario - Input File to FCC in the Mail Adapter

vk_k3
Participant
0 Kudos

Hello Experts,

I have a simple file to Mail scenario.

But the requirement is that I have to pick the source file and then I have to apply for file content conversion and then put the resultant

as a body of the email.

is it possible?

Can you please help on this ?

Regards,

Vk

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi VK,

Please Configure these modules in your receiver mail adapter.

Regards,

Suhale Shaik.

vk_k3
Participant
0 Kudos

HI Suhale,

Thanks a lot for your quick response.

Did that work for you for the Email in the body after content conversion ?

Can you give me more details if possible ?

More details like if you are performing content conversion on the attachment or for the data in the Email body ?

REgards,

Vk

Former Member
0 Kudos

Yes it'll work. Please define the value of Transform.ContentDisposition as Inline.

Regards,

Suhale Shaik.

vk_k3
Participant
0 Kudos

HI Suhale,

Can you please share your target structure and the resultant Email.

That will help me a lot.

Thanks & Regards,

Vk

vk_k3
Participant
0 Kudos

HI Suhale,

It is not working.

I have source XML structure and the target Mail package structure.

"Invalid structure name encountered during conversion: Subject at XML element Mail, Subject"

Can you please suggest something for this same.

Former Member
0 Kudos

Hi Vk,

Please use your Fcc structure at receiver side, Don't use mail package.

Mention the mail parameters in Communication channel of Receiver mail adapter.

Regards,

Suhale Shaik.

former_member183816
Active Participant
0 Kudos

Are you comfortable with java mapping?

I have recently written a document on it. May be it can help you to achieve this requirement. Let me know if you stuck anywhere while following it.

I think you will apply FCC in sender file adapter at source to get an xml or you can directly take entire file from sender as input stream and play with it in java mapping.

To send it as body of email. don't apply code for zipping and attachment. use this email package.Put your file content in <Content> tag.

     String emailPackage=

             "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+CRLF+

             "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"+CRLF+

             "<Subject>Delivery notes</Subject>"+CRLF+

             "<From>"+fromEmail+"</From>"+CRLF+

             "<To>"+toEmail+"</To>"+CRLF+

             "<Reply_To />"+CRLF+

             "<Content_Type>text/plain</Content_Type>"+CRLF+

             "<Content>"+f3+"</Content>"+CRLF+

             "</ns:Mail>";