on 07-06-2015 4:04 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.