Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Email parsing issue
laurentbe

From: Anderlecht, Belgium
Posts: 27
Member Since: 10/21/03
posted January 2, 2015 11:02 AM

Hi Team,

I have some email parsing related issues with version 4.2.2.2 .
I'm not able to get the text which consists of a multipart/alternative which is parsed as a Resource having multipart/alternative ContentType and inline ContentDisposition.

I cannot cast it in anyway (e.g. Multipart)

Here is the email structure:

Content-Type: multipart/mixed; boundary="=_54A32017CA280EA0E10080000A723739"
MIME-Version: 1.0

--=_54A32017CA280EA0E10080000A723739
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="=_54A3EEED32570B60E10080000A723739"

--=_54A3EEED32570B60E10080000A723739

Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
... TEXT ....
--=_54A3EEED32570B60E10080000A723739

Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
... HTML ....
--=_54A3EEED32570B60E10080000A723739--

--=_54A32017CA280EA0E10080000A723739
Content-Type: application/pdf; name="somefile.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="somefile.pdf"
... FILE CONTENT ...
--=_54A32017CA280EA0E10080000A723739--


Any advice would be appreciated.

I can send you the email.

Regards,
Laurent Berwaerts
laurentbe

From: Anderlecht, Belgium
Posts: 27
Member Since: 10/21/03
posted January 5, 2015 9:40 AM

Any update?
laurentbe

From: Anderlecht, Belgium
Posts: 27
Member Since: 10/21/03
posted January 6, 2015 5:40 AM

Doing some more tests I noticed that there is no issue using the old Dart.Mail.dll 4.2.1.2.
The structure is correct.

4.2.2.2 email structure:
------------------------

Date: Wed, 31 Dec 2014 17:05:09 +0100
From: xxx
Subject: xxx
To: xxx
CC: xxx
Disposition-Notification-To: xxx
Return-Receipt-To: xxx
Content-Type: multipart/mixed; boundary="=_54A32017CA280EA0E10080000A723739"
Return-Path: xxx
MIME-Version: 1.0


-- Part 1 ------------------------------------------------------------------
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="=_54A3EEED32570B60E10080000A723739"

Resource ContentId:
-- Part 2 ------------------------------------------------------------------
Content-Type: application/pdf; name="xxx.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xxx.pdf"

FileName: xxx.pdf

4.2.1.2 email correct structure:
--------------------------------

Date: Wed, 31 Dec 2014 16:05:09 +0000
From: xxx
Subject: 
To: xxx
CC: xxx
Return-Receipt-To: xxx
MIME-Version: 1.0

-- Part 1 ------------------------------------------------------------------
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="=_54A3EEED32570B60E10080000A723739"

-- Part 1.1 ----------------------------------------------------------------
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

xxx

-- Part 1.2 ----------------------------------------------------------------
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

xxx

-- Part 2 ------------------------------------------------------------------
Content-Type: application/pdf; name="xxx.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xxx.pdf"

FileName: xxx.pdf
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 376
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted January 6, 2015 9:53 AM

Thank you for your recent post. Yes, please send the email to support@dart.com and we will be happy to take a look.

I will watch for your email.

Best regards,
Jamie
Jamie Powell (Admin)

From: Rome, NY USA
Posts: 376
Member Since: 03/13/07

Extra Support Options
Custom Application Development

posted January 14, 2015 4:24 PM

This issue has been reproduced and logged as TFS620. Please contact sales@dart.com for additional information.

Regards,
Jamie
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX