cancel
Showing results for 
Search instead for 
Did you mean: 

Mail to .MSG file scenario using PI 7.1

0 Kudos

Hi,

I have a requirement of receiving mail from outlook mailbox at sender side and saving that mail as .MSG file in application server of receiver system.

Is it possible to achieve the same using PI 7.1?

Please suggest.

Thanks & Regards,

Praloy

Accepted Solutions (0)

Answers (2)

Answers (2)

azharshaikh
Active Contributor
0 Kudos

Hello Praloy,

My few cents:

You can achieve this is 2 ways:

1. You need to write Java Mapping in PI to convert the incoming Email (from Sender Mail Adapter) to .MSG  file using Standard Java Mail APIs

JavaMail API documentation

2. Alternatively a simpler approach would be to Pick .MSG files directly from Sender System (using File Adapter) instead of PI doing the conversions. You can check with your MS Exchange team to provide the Emails in .MSG format & dump into some Dir which PI can poll.

Saving Outlook Messages — MessageSave Documentation

Hope it helps

Regards,

Azhar

vadimklimov
Active Contributor
0 Kudos

Hello Praloy,

Yes, this is possible, but will require some custom development in part of generation of the MSG file. One of options is to enhance receiver (File) adapter logic with the custom developed adapter module which will convert the processed message from XML format into MSG format. For MSG file generation, you can find several open source (for example, Apache POI-HSMF) and commercial (for example, Aspose.Email developed by Aspose or JMSG developed by Independentsoft) Java libraries. You may also want to search over the Internet and find other similar libraries for MSG files generation.

Regards,

Vadim

0 Kudos

Hello Vadim,

Thanks for your information.

It would be very good if you can share any links on the open source tools such as Apache to convert data to .MSG format.

Regards,

Praloy

vadimklimov
Active Contributor
0 Kudos

Hello Praloy,

A good starting point is an official site of the project (https://poi.apache.org/hsmf/) and JavaDocs (POI API Documentation). Further examples you can find over the Internet searching for usage of specific classes.

Regards,

Vadim