Navigation

Search

Categories

 
 

On this page

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 21
This Year: 0
This Month: 0
This Week: 0
Comments: 29

Sign In
Pick a theme:

 Wednesday, November 30, 2005
Wednesday, November 30, 2005 4:03:21 AM (GMT Standard Time, UTC+00:00) ( )

Now, we can send e-mails with local file(s) as attachment(s) in BizTalk 2006 without add these files as Multipart-MessageParts of the message that we'll send.  This new feature can be used for both static and dynamic ports.

If you use static ports, you can use the new Admin Console to select the file(s) that you can send without problems.  But, if you need that these files change depending of message type, then you must use a dynamic port and set the path of file(s) to new SMTP.Attachments context property of http://schemas.microsoft.com/BizTalk/2003/smtp-properties namespace.  There is only one restriction, you have to use a pipe character (|) to separate all path file(s) and one more pipe in the end of path(s), for example:


Msg_Mail(SMTP.From) = "carlos1254@mycompany.com";
Msg_Mail(SMTP.SMTPHost) = "SMTPServer";
Msg_Mail(SMTP.Subject) = "Dynamic attach files";
Msg_Mail(SMTP.Attachments) = "c:\file1.txt|c:\image2.jpg|d:\file1.xml|";
Port_SendMail(Microsoft.XLANGs.BaseTypes.Address) = mailto:carlos1254@destiny.com;

This is a fantastic new feature of SMTP Adatper in BizTalk 2006.

Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview