cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Mail Adapter able to retrieve HTML emails?

Former Member
0 Kudos

Hi there,

I stamped over an issue that look like an adapter limitation, would like to hear you opinions.

We´re using a POP3 account configured in a Sender Mail Communication Channel with XIPAYLOAD, with this attempts:

- with or without the Mail Package;

- any type of encoding;

- must keep attachments.

In all of this options always the retrieved email from the POP Server comes in TEXT format.

Does the Mail Adapter support HTML emails?

Does the Mail Adapter support mixed/alternative Content-Type?

>Current version: SAP PI 7.0 SP14

>Mail Server: Lotus Domino 7.0.x

Regards,

Marlo Simon.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

We´re using a POP3 account configured in a Sender Mail Communication Channel with XIPAYLOAD, with this attempts:

- with or without the Mail Package;

- any type of encoding;

- must keep attachments.

In all of this options always the retrieved email from the POP Server comes in TEXT format.

That means that you first message body is really text format.

Maybe you have a multipart document, the first part is plain text, the second part is HTML.

Microsoft Outlook produces such kind of mails.

Former Member
0 Kudos

@Stefan

I wrote an Adapter Module to read multiple attachments so I could really get all information.

Testing with plain, multipart/mixed or multipart/alternative yields same results.

The bad news is that nothing as comes through as text/html.

Any clues?

Maybe the Lotus Notes server?

Rgds,

Marlo Simon

stefan_grube
Active Contributor
0 Kudos

When you set flag "keep attachments", do not use mail package and no adapter modules besides the satndard,

Then you can see in SXMB_MONI all parts of the mail message with the content type as delivered.

What do you see here?

Former Member
0 Kudos

HI Stefan,

>text/plain; charset="ISO-8859-1"

Looks like the problem is somewhere in the POP mailbox configuration, we are tracing back to the Lotus server.

I made a test with a different mail client and the Content-type was the same, text/plain.

Thanks for you help,

Marlo Simon.

Answers (4)

Answers (4)

Former Member
0 Kudos

Not SAP PI´s fault, mail server was charged guilty.

Seya.

Marlo Simon.

Edited by: Marlo Simon on Feb 5, 2010 5:10 PM

jean-philippe_pain2
Participant
0 Kudos

Hello Marlo,

I am also currently developping a java module in order to handle multiple attachments in the sender mail adapter.

But it seems i have some problems.

Can you tell me if you use the payloadswapbean before your own module or not ?

Did you put your own module in the first position before the standard one in the module tab of the CC ?

Can you explain a little more how you did it please.

Thanks,

Jean-Philippe

Former Member
0 Kudos

Ok,

I´m using the Sender Mail Scenario.

I tried the MessageTransformBean (Transform.ContentType) to force the Content-type to text/html and it made no difference.

Is there any Advanced parameter that would help? No docummentation from SAP on those ones.

I want to keep the original email body, but looks like the adapter only read plain text.

Rgds,

Marlo Simon.

Edited by: Marlo Simon on Feb 5, 2010 2:23 PM

sunilchandra007
Active Contributor
0 Kudos

Hi,

Check /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter if it is helpful.

Regards,

Sunil Chandra

Former Member
0 Kudos

Hi,

Please set the parameter Content type to "text/html".

Thanks,

Kiran.