Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Getting HTML body content using POP3 adapter
- This topic has 10 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
August 24, 2006 at 10:47 AM #15403
The body part of the email may not be Html.
Some email systems will set the Body part to be plain text and add an Html attachment.Can you dump out the raw text from the email to look at the contents.
-
August 24, 2006 at 9:25 PM #15404
I just did a quick test sending from Outlook 2003 and here is the MIME layout in the message.
[code:1:f4ca01fa97]Content-Type: multipart/related; boundary=\"—-=_NextPart_000_0004_01C6C823.9AF70B90\"
——=_NextPart_000_0004_01C6C823.9AF70B90
Content-Type: multipart/alternative; boundary=\"—-=_NextPart_001_0005_01C6C823.9AF97C90\"——=_NextPart_001_0005_01C6C823.9AF97C90
Content-Type: text/plain; charset=\"us-ascii\"
Content-Transfer-Encoding: 7bitText Body
——=_NextPart_001_0005_01C6C823.9AF97C90
Content-Type: text/html; charset=\"us-ascii\"
Content-Transfer-Encoding: quoted-printable<html>Body</html>
——=_NextPart_001_0005_01C6C823.9AF97C90–
——=_NextPart_000_0004_01C6C823.9AF70B90
Content-Type: image/jpeg;
name=\"image001.jpg\"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>——=_NextPart_000_0004_01C6C823.9AF70B90–[/code:1:f4ca01fa97]
By setting the following on the POP3 adapter config I was able to extract the html content
Apply MIME Decoding: [b:f4ca01fa97]true[/b:f4ca01fa97]
Body Part Content Type: [b:f4ca01fa97]text/html[/b:f4ca01fa97]
Body Part Index: [b:f4ca01fa97]0[/b:f4ca01fa97]-
August 24, 2006 at 11:28 PM #15405
I was using a receive location with the default passthru pipeline and a send port with default passthru pipeline.
Can you try:
POP3 Adapter – Apply MIME = false
Passthru receive pipeline
Passthru send pipeline
FILE adapterThis should give you the raw MIME encoded data in the output file.
Can you post this – delete the email content, just need the MIME data-
August 27, 2006 at 10:15 PM #15406
The example shown is not a multipart MIME Message. It only has a single text/plain message part. There is no Html message part to extract.
-
August 22, 2006 at 10:40 AM #15407
Hi
Im retrieving mail body content by pop3 adapter.
My message is multi part message (MsgEmail / BodyMessagePart)
The adapter pipeline is custom pipeline with flat file dissasembler.
Now when im printing the MsgEmail. BodyMessagePart I can see the text body content.
However if the body content is HTML I can’t see the tags, but only the text
How can I retrieve all html bodycontent?-
August 24, 2006 at 12:29 PM #15408
Thanks Greg,
this is not my case.
the email comes from outlook.
when i click on message properties i can see the content type is
\”application/ms-tnef\”
even by defining this in the content type property it is not find it
(The MIME decoder cannot find a MIME part for the specified content-type. Either there was no matching content-type or there were not enough occurrences of it. )Also all tests i did including just transfer email from recieve port to send port using pass through i cannot get the html body…only plain text…
-
August 24, 2006 at 9:38 PM #15409
Really?
i tried it and it didn’t work.
I will try again…
which pipline? passthrough ?-
August 24, 2006 at 10:10 PM #15410
Hi Greg,
i just tried it – simple recieve loc. that gets the outlook 03 mail and pass it to file send port.No orchestration…
content type : text/html
index : 0
apply mime : trueand im getting my \”regular\” error:
The MIME decoder cannot find a MIME part for the specified content-type. Either there was no matching content-type or there were not enough occurrences of it.10x 4 responding
-
August 25, 2006 at 8:18 AM #15411
Hi Greg,
This is the file content when:apply mime : false
index : 0
content type : emptyReceived: from XXXXXX ([10.17.33.181]) by XXXXX with Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Aug 2006 11:04:29 +0300
MIME-Version: 1.0
Content-Type: text/plain;
charset=\”us-ascii\”
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Return-Path: XXXXXX
X-MimeOLE: Produced By Microsoft Exchange V6.5
X-OriginalArrivalTime: 25 Aug 2006 08:04:29.0442 (UTC) FILETIME=[17231620:01C6C81D]
Subject: ccxvcxv
Date: Fri, 25 Aug 2006 11:04:29 +0300
Message-ID: XXXXX
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: ccxvcxv
Thread-Index: AcbIHRcOXSECBs/MTM2O6PJFOSV4sQ==
From: \”Elad Rosenberg\” XXXXXXXX
To: \”~Online Forms – Offline Approvals UAT\” XXXXX=20
xcvxcvx
Elad Rosenberg
Amdocs Online Forms Team
XXXXXX.com | xxxxxxx
=20
when apply mime is true im getting only the text itself (without tags…) :
xcvxcvx
Elad Rosenberg
Amdocs Online Forms Team
XXXXXX.com | xxxxxxx
when content type text/html im getting the error (cannot find mime type…)
thanks again…
if u can send your project (msi file) where u succeeded to retrieve html i will be thankfull-
August 28, 2006 at 7:20 AM #15412
Hi Greg,
Everything is working ok from oulook express or any html email clinet.
My conclusion is that it’s something with Exchange configuration.Thanks
-
August 5, 2010 at 9:19 PM #25539
Hi there,
The way the POP3 adapter works is, when an html email is received, its splits the body into two formats – text and html. The body part index of 0 has the text and the body part index 1 has the html content. You need to get the body part index of 1 if you need the html content.
Also to be noted is this isint the case for all html emails.
Cheers,
Dipesh A.
http://integrationexperts.wordpress.com
-
-
-
-
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.