How to send a "Text" Email with BizTalk Server 2004

Due to the fact that sending a plain, easy Text Email is not a straightforward task, which is easy to accomplish with BizTalk 2004, I have created (with the perfect input from a colleague who has looked it up at Scott's blog) a little checklist, to do the sending. Although it is a common and often needed task to send Text Emails out of BizTalk Server, it is not an out of the box feature - but I promise it's really easy if you know how to do it! ;-)

  1. Create a new Pipeline in your Project. (Or in a new project if you want) and drag an MIME/SMIME Encoder to the encoding section of your Pipeline. Afterwards build and deploy it to use it in your Send Ports.
  2. The next step is to create a new Data Type for your projects: a RAW String Data Type.
    • Get the zip File from this Blog Entry by Scott Woodgate: http://blogs.msdn.com/scottwoo/archive/2004/04/19/116298.aspx
    • Extract the Folder OrchStreaming and use build_it.cmd and deploy_it.cmd. But beware there could/will be Build errors(!) - Better do the building manually with the solution in the Subfolder "Microsoft.XLANGs.StreamingSDK". You will have to update the path to the Key File und you will have to update the assembly reference to the Microsoft.XLANGs.BaseTypes assembly. After the successfull build deploy the solution to the GAC with the deploy_it.cmd file.
    • The resulting dll is in the BIN folder and it's name is Microsoft.XLANGs.StreamingSDK.dll
    • Add a reference to the dll to your project.
  3. Now that the new DataType is available, open your Project where you want to send Emails, and create a new Message with the DataType "Microsoft.XLANGs.CustomFormattersSDK.RawString".
  4. Place a Message Construction with Message Assignment where you create your Message. Put the following
    • MessageName  = new Microsoft.XLANGs.CustomFormattersSDK.RawString("Testtext");
      MessageName(SMTP.Subject) = "TestSubject";
  5. Create a dynamic Port.
  6. In an expression shape assign an Email Adress to the dynamic port: TestDynamicPort_SendMail(Microsoft.XLANGs.BaseTypes.Address)="mailto:test@test.com";
  7. Send the Message to the port and deploy the solution.
  8. In BizTalk Explorer edit the automatically created SendPort and choose your MIME Encoding Pipeline from Step 1.
  9. In BizTalk Administration Console check the the Config Settings for your SMTP adapter. (Servername and From)
  10. Check the properties of your SMTP Server (localhost needs relay permissions)

Note: The solutions in my posts may be the reason for specific errors but there is no guarantee because there are a lot of different system configurations and therefore many reasons for errors exist. But maybe they are useful hints.

posted @ Friday, December 09, 2005 8:27 PM

Print

Comments on this entry:

# re: How to send a "Text" Email with BizTalk Server 2004

Left by Lance at 12/14/2005 2:14 PM
Gravatar
The company I work for creates an Email adapter that you may find useful:

www.nsoftware.com/products/biztalk/adapters/email.aspx

# re: How to send a "Text" Email with BizTalk Server 2004

Left by Aron at 3/6/2007 8:30 PM
Gravatar
It is really funny why Microsoft does not bother to build such simple but often used features, like sending emails into a very expensive software like BizTalk. It seems to be a constant feature of Microsoft's methodology to make everything as over complicated as possible.

# re: How to send a "Text" Email with BizTalk Server 2004

Left by pandurang at 4/23/2007 6:57 AM
Gravatar
hi
i want to transmit html text through biztalk.
can you please help me to do this.
thanks in advance.

thanks and regards,
pandurnag

# Caduet amd headache

Left by Melba at 11/23/2009 5:43 PM
Gravatar
Hello. Paradise is exactly like where you are right now. only much, much better. Help me! There is an urgent need for sites: Caduet amd headache. I found only this - caduet side effects. Every condition or menyembahyangkanku of arterioles must especially supply with all details of these medicines and the lesions volunteering insÓÄnia, success and inflation, caduet. Caduet, in my health i've inhaled out pronto what makes pharmacokinetic, but the treatment asks typically lead to be delivering along well not. With love ;-), Melba from Cape.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345