cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter - Mail Package HTML format error

Former Member
0 Kudos

Hi,

I am having a format issue with the Receiver Mail Adapter sending out HTML messages using mail package functionality. We are using the mail package to enable dynamic header elements such as mail title and address. The email content includes an HTML table structure and this is being corrupted by the way that the mail package is amending the HTML.

The email has been produced using an xslt function. After the xslt runs the table is structured as shown below.

      <tr>

        <td>IHCT906FI</td>

        <td></td>

        <td>

          <table></table>

        </td>

        <td></td>

        <td>0080308223</td>

        <td>0010000587</td>

        <td></td>

        <td></td>

        <td></td>

        <td></td>

        <td></td>

      </tr>

After the mail package has processed the email the HTML is formatted as shown below. The empty cells have had their tags reformatted from <td></td> to <td/>.

      <tr>

        <td>IHCT906FI</td>

        <td/>

        <td>

          <table/>

        </td>

        <td/>

        <td>0080308223</td>

        <td>0010000587</td>

        <td/>

        <td/>

        <td/>

        <td/>

        <td/>

      </tr>

This causes the table to be displayed in a corrupt fashion within the email. I am confident that the mail package is what is causing this issue as when the email is transmitted to a static address not using the mail package the html is as produced by the xslt.

Does anybody know of any mail package parameters that can control how it reformats the mail contents.

We are using PI 7.1.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi,

In fact, empty tags are empty tags, no matter if you write them like this: <td></td> or like that: <td/>. If you want them to be displayed properly in the e-mail message, use the non-braking space as the <td> tag concent, like this:

<td>&nbsp</td>

This will solve your incorrect display problem.

Regards,

Greg

Answers (0)