Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Biz Talk Framework > Sending email w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 187 of 230
Post > Topic >>

Sending email with multiple binary attachments using BTS 2006

by =?Utf-8?B?emVl?= <zee@[EMAIL PROTECTED] > Jun 2, 2006 at 11:50 PM

I'm trying to send an email with multiple attachments from an orchestration

using a SMTP ****t in BTS 2006 using custom pipeline component with MIME 
encoder. I got it to work where I get an email with multiple attachments
but 
the attachment data is corrupted for binary attachments (.exe or .doc
etc). 
The orchestration calls custom .Net code which creates and populates the 
multiple parts with the attachment data. Here is the code snippet for 
reference: 

byte[] databytes = System.IO.File.ReadAllBytes(@[EMAIL PROTECTED]
"C:\notepad.exe");
MainMessage.AddPart(databytes, "Attachment1");
Microsoft.XLANGs.BaseTypes.XLANGPart part1 = message["Attachment1"];
part1.SetPartProperty(typeof(MIME.FileName), "t2.exe");

How can I get the binary attachments to work without them getting corrupt?
Any help on this would be appreciated.
 




 4 Posts in Topic:
Sending email with multiple binary attachments using BTS 2006
=?Utf-8?B?emVl?= <zee@  2006-06-02 23:50:01 
RE: Sending email with multiple binary attachments using BTS 200
wjzhang@[EMAIL PROTECTED]  2006-06-05 09:32:20 
RE: Sending email with multiple binary attachments using BTS 200
=?Utf-8?B?emVl?= <zee@  2006-06-07 15:29:01 
RE: Sending email with multiple binary attachments using BTS 200
wjzhang@[EMAIL PROTECTED]  2006-06-12 14:14:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 18:37:55 CST 2008.