| costasz@gmail.com 2005-06-16, 5:50 pm |
| These attachments never get transformed to an Xml Document. I am only
supposed to route them to an email address.
Here's the flow:
I have binary files received by the FTP adapter.
I then send them to an MSMQT port.
My Orchestration listens to that port and after it starts It uses
MessageAssignment to create a new Multi-part message that will contain
the binary file and some other routing info.
Then the message is sent through a pipeline which contains the MIME
encoder and out it goes through an SMTP port.
I use the SMTPUtils and it all works ok as long as I hardcode the
filename. My problem is how to save the original filename that was is
FTP.ReceivedFileName and assign that to the Binary MIME message part.
I now use something like this is in the MessageAssignment Expression
Editor:
Message_mime.MessagePart_subje=ADct =3D new
My.BTS2004.SMTPUtils.RawString=AD("<HTML><BODY>Your file with reference
<B></B> has been sent for approval to <A
HREF=3D'mailto:'></A></BODY></HT=ADML>");
My.BTS2004.SMTPUtils.Part.SetC=ADontentType(Message_mime.Messag=ADePart_sub=
ject,"text/html");
Message_mime.MessagePart_paylo=ADad =3D Message_File;
My.BTS2004.SMTPUtils.Part.SetC=ADontentType(Message_mime.Messag=ADePart_pay=
load,"text/xml");
My.BTS2004.SMTPUtils.Part.SetF=ADileName(Message_mime.MessagePa=ADrt_payloa=
d,"hardcodedFilename.=ADzip");
I'd like to use the original received file name in the last line but I
think it's gone by the time I get here.=20
Thanks=20
CZ
|