Skip to Content
0
Mar 11, 2010 at 04:36 AM

Mail message sent from PI comes with weird characters at Subject

142 Views

Hi folks,

I've a Scenario where I must send a e-mail with some process data. To do that, I'm using emial Package to build the email Message.

The email Package XML Looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<ns:email xmlns:ns="http://sap.com/xi/XI/emial/30">
<Subject>HEY THIS IS JUST A LONG PLACEHOLDER SUBJECT TO HELP ME TO FIND OUT THE ISSUE OF MY MESSAGE</Subject>
<From>sender</From>
<To>rcpt</To>
<Content_Type>multipart/mixed; boundary="--JrSnBoUnDaRy"</Content_Type><Content>----JrSnBoUnDaRy
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline

Lorem Ipsum Dolor Sit ...
</Content></ns:email>

When the message arrives at my emialbox, the SUBJECT looks like this:

"HEY THIS IS JUST A LONG PLACEHOLDER SUBJECT TO HELP ME TO FIND OUT THE I SSUE OF MY emial MESSAGE"

Instead of:

"HEY THIS IS JUST A LONG PLACEHOLDER SUBJECT TO HELP ME TO FIND OUT THE ISSUE OF MY emial MESSAGE"

As you can see, there`s a "space" between the I and SSUE word. Looking closer at a Hex Editor I can see that I'm dealing with two special characters, first one LF (0xA) and later a TAB(0x9).

Doing some test I've found out that it just happens at the 72th position of the Subject string.

Is there any limitation for email fields while using email Package or Receiver email Adapter?

Thanks in advance,

José Nunes

Edited by: Jose Nunes on Mar 11, 2010 1:39 AM