cancel
Showing results for 
Search instead for 
Did you mean: 

B1if store email as eml file

0 Kudos

Hi experts,

Does anybody know how to save an e-mail as eml file in B1if 1.0? I guess it should look like that:

And the receiveemail atom would be the input for the StoreFile atom. But what Payload Type do you have to use and what would be the correct Character Encoding?

Thanks a lot for any help!

Kind regards,

Almuth

Accepted Solutions (0)

Answers (4)

Answers (4)

bastian_schaefer
Active Contributor
0 Kudos

Hi Almuth,

you received an xml file, which can be stored as xml in the file system.

If you store it as *.msg, it's still an xml document only with a different file ending.

If you want to store it as mail specific format you probably need to put it into the required xml structure, which your Email program is able to interpret.

Best regards

Bastian

0 Kudos
<mailEntry id="<4436b829a8434b5897b9bcc173a2acec@speck.net>" xmlns="">
<From>test@test.com</From>
<To>support@test.com</To>
<Subject>Test Mail</Subject>...
0 Kudos

Hi Bastian,

Thank you very much for your response! Unfortunately we don't receive anything like that. The payload looks like:

<mailEntry id="<4436b829a8434b5897b9bcc173a2acec@caller.com>" xmlns=""> <From>test@caller.com</From>

<To>support@test.com</To>

<Subject>Support Mail</Subject>...

We are creating service calls in SBO for inbound mails and we add the mail attachments as service call attachments. But the customer wants to have the e-mails as eml or msg file attached to the call as well so that they can click on it and see the whole e-mail with history. I guess the only way would be to implement a transformation atom to store the e-mail as html file. Or do you see any other option?

Kind regards,

Almuth

bastian_schaefer
Active Contributor
0 Kudos

Hi,

how does the payload look like after receiving the email?

If you already receive something like <bfa:io pltype="bin">...</bfa:io> you can directly use it for the store file atom, otherwise please put an XFORM atom in between and apply the documentation of the store file to produce a usable payload.


Best regards

Bastian