Operating System - OpenVMS
1827620 Members
3298 Online
109966 Solutions
New Discussion

XML corrupted when sent as attachement

 
SOLVED
Go to solution
Willem Grooters
Honored Contributor

XML corrupted when sent as attachement

We found a weird behavious when sending an XML file as an attachment.

* Application creates an XML-file
* This file is sent using TCPIP$SMTP_SFF.EXE
* On receipt it seems tha every "=" in the original file cases a skip of the next two characters.

Attached the output to be sent, code that creates the file used by TCPIP$SMTP_SFF, and the resulting, corrupted file.
The DCL code is part of the batch procedure that handles sending of the XML file.

We need to have this file copied as an attachement because the receiver is an application that will read this (as XML) and will process it.

What way can we sent this XML files - as it is now - so teh reciver will get the right data?

Willem
Willem Grooters
OpenVMS Developer & System Manager
6 REPLIES 6
Ian Miller.
Honored Contributor
Solution

Re: XML corrupted when sent as attachement

I suspect that the processing of the '=' is related to
Content-Transfer-Encoding: quoted-printable

Parhaps you need to specify something else.
____________________
Purely Personal Opinion
Robert Gezelter
Honored Contributor

Re: XML corrupted when sent as attachement

Willem,

I am rather busy at this instant, so I cannot play with the examples that you attached.

However, on several occasions BEFORE the utility support, I have directly injected messages with attachments into the SMTP delivery system by using C-KERMIT to directlty connect to TCP Port 25 and processing the SMTP dialogue (which is not particularly difficult).

- Bob Gezelter, http://www.rlgsc.com
Willem Grooters
Honored Contributor

Re: XML corrupted when sent as attachement

Ian,
I thought it had to do with something in the part before. I guess I can simply take this out (it's only needed for non-text, I think?)

Robert,
It should be solved with the standard software - extra software is no option ;-(
Willem Grooters
OpenVMS Developer & System Manager
Robert Gezelter
Honored Contributor

Re: XML corrupted when sent as attachement

Willem,

I would agree with Ian.

My suggestion was meant in the event that there was some longer duration problem than the Content Type

- Bob Gezelter, http://www.rlgsc.com
Wim Van den Wyngaert
Honored Contributor

Re: XML corrupted when sent as attachement

Joseph Huber_1
Honored Contributor

Re: XML corrupted when sent as attachement

Willem, the problem is: Your command-file produces a mime header specifying "quoted-printable", but then continues to insert the XML as plain text. The receiving side does what the header says: interpret the XML as quoted-printable, where the "=" (amongst others) has special meaning.

The easiest is to change encoding to 7bit/8bit.
But I recommend real quoted-printable, unless You are sure plain text survives all mail gateways and receivers. The VMS MIME utility does the conversion and produces all headers nicely.

Look in some recent discussion on MIME attachment sending in this forum. There are several procedures mentioned.
http://www.mpp.mpg.de/~huber