cancel
Showing results for 
Search instead for 
Did you mean: 

Email to File scenario - .eml

azharshaikh
Active Contributor
0 Kudos

Hi All,

We have an Interface (Email to File Scenario). PI is connected to Outlook server using Sender Mail Adapter using POP (with Mail Package).

We need to read the email and save it as-is in .eml format in File server. Once the users opens that ,eml file, it should be visible as the actual email that was sent to Outlook server (containing all rich text data and attachments in it)

Please let us know if there is any standard approach to achieve this in PI.

Regards,

Azhar

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Pi is made for exchanging business content between application systems.

Why you do not simply forward the mails to the relevant users by an outlook rule? You need no PI here.

azharshaikh
Active Contributor
0 Kudos

Hi Stefan,

I agree with your suggestion. However in our scenario, PI needs to read emails from the Client Outlook server and pass the data to receiver in HTML format. This is where we are facing challenge.

The issue is that each email sending server (eg: yahoo, gmail, hotmail, rediff, etc) is having different encoding formats. Inorder to pass data to receiver in html format, PI needs to do all the decoding logic (for base64, Quoted Printable...and so on) and forward it to the receiver.

As more and more Users / domains start sending the emails, we are facing a challenge to decode these emails and the html at receiver is not displaying correct data.

Hence instead PI doing decoding and placing the HTML data in receiver, we are trying to check possible solution / approach to achieve this without burdening PI as a middleware. If PI can pick the incoming emails as is and place in receiver system in .eml format, it will provide the complete details to the receiver from which they are pick required content to display in their application.

Let us know, if there exists any standard way in PI to achieve this...or any other possible solution is also most welcomed.

Regards,

Azhar

azharshaikh
Active Contributor
0 Kudos

Hi All,

We have used Java Mapping with standard Mail APIs to read & parse the email content. Using Std Mail APIs we are able to read the email & write it in HTML format as required by receiving system.

(Able to parse text/html, Quoted Printable, Multipart alternative..etc mail formats)

Regards,
Azhar

Answers (2)

Answers (2)

Nikiforos
Explorer
0 Kudos

Hello Azhar,

were you able to find a solution for this? I have a very similar requirement.

Thanks!
Nick

iaki_vila
Active Contributor
0 Kudos

Hi Azhar,

Have you checked this wiki Step by Step Mail To File Scenario - Process Integration - SCN Wiki?

Regards.

azharshaikh
Active Contributor
0 Kudos

Hi Inaki,

Thanks for sharing the link. I have checked it. It deals with attachments (in mail).

Our requirement does not match with it. We need to pass the entire Email as - is to receiver (in .eml format).

Regards,

Azhar