|
Home > Archive > BizTalk Server Orchestration > May 2006 > Sending a received message by email as a named attachment
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sending a received message by email as a named attachment
|
|
| Jon Holmes 2006-05-02, 1:17 pm |
| Hi,
I have a what seems like a really simple requirement for BizTalk 2004.
A message received as an XML file needs to be sent as an email attachment to
a named email address. I have done this using a custom pipeline and the
MIME/SMIME encoder, setting the 'Send body part as attachment' property to
true. However, the attached file simply has a name of 'attachment' which will
not suffice for my purpose. I either need to be able to change the name of
the attachment file or add further text to the email body to advise the
recipient of the type of message being received.
I have found blogs indicating that this is possible using a multi-part
message. One blog indicated that you could add the message as a named
attachment without saving the message to disk first, however no guidance of
how you would actually add the message as a named attachment was included.
Any advice would be much appreciated.
| |
| Yossi Dahan 2006-05-02, 1:17 pm |
| Jon Holmes wrote:
> Hi,
>
> I have a what seems like a really simple requirement for BizTalk 2004.
>
> A message received as an XML file needs to be sent as an email attachment to
> a named email address. I have done this using a custom pipeline and the
> MIME/SMIME encoder, setting the 'Send body part as attachment' property to
> true. However, the attached file simply has a name of 'attachment' which will
> not suffice for my purpose. I either need to be able to change the name of
> the attachment file or add further text to the email body to advise the
> recipient of the type of message being received.
>
> I have found blogs indicating that this is possible using a multi-part
> message. One blog indicated that you could add the message as a named
> attachment without saving the message to disk first, however no guidance of
> how you would actually add the message as a named attachment was included.
>
> Any advice would be much appreciated.
hi Jim
have you looked at
http://msdn.microsoft.com/library/d..._email_ymxa.asp
? -
"You can set the file name of the attachment by using the
SMTPUtils.Part.SetFilename method."
all it really does is setting the MIME.FileName property of the first
part of the message.
--
Yossi Dahan
www.sabratech.co.uk
| |
| Jon Holmes 2006-05-02, 1:17 pm |
| Hi Yossi,
Thanks for the useful link.
As someone fairly new to BizTalk I had not come across the SMTPUtils before
so this was really helpful and my orchestration is now up and working.
Cheers.
Jon Holmes
|
|
|
|
|