| Ruslan Yakushev [MSFT] 2004-12-03, 8:46 pm |
| I do not think you can use map on send port for this.
To send plain email message w/o orchestration you would need to write a
custom pipeline component for this and place it in the send pipeline. The
pipeline component need to replace the XML in the body part of the BizTalk
Message object with the plain text and set the content type of the body
part to "text/plain".
You can find an example of how to do this in SDK refresh - sample is called
\SDK\Samples\Pipelines\XslTransformCompo
nent.
Note that this sample sends an HTML message. To send a text message you can
mdodify the XSL file and also set the content type to "text/plain" (e.g
inmsg.BodyPart.ContentType = "text/plain")
--------------------
>From: "Xerox" <anon@anon.com>
>Subject: Send plain text email without using orchestration
>Date: Fri, 3 Dec 2004 14:47:36 -0000
>Lines: 13
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
>Message-ID: <eoqMJcU2EHA.2600@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.biztalk.general
>NNTP-Posting-Host: 194.129.182.225
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:22215
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>I have seen the example in the BizTalk docs of sending a plain text
>formatted email using the SMTP send adapter - it involves the use of the
>customer RawString class. But is there a way of sending a plain text email
>without having to use an orchestration to do it?
>
>I just want to have a simple solution whereby a SMTP send port is listening
>for a message of a particular type. On receipt, the message would get
>transformed using a map on the send port in to the RawString. Is this
>possible?
>
>Thank you!
>
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
|