You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Tony Nelson <tn...@starpoint.com> on 2008/02/22 17:14:01 UTC

Upgrading to commons-email-1.1

I attempted to upgrade our application from commons-email-1.0 to
commons-email-1.1.  We send mostly simple text messages, but
occasionally send text/html multipart messages.  Simply replacing the
jar file, with no code changes caused our html email messages to display
the text part, and the html part showed up as an attachment.  This was
seen in Lotus Notes and Thunderbird.  If anyone can shed some light on
this I would really appreciate it.

Below are two sample messages, one generated with 1.1 and one generated
with 1.0.  I removed the received lines for to shorten it up a little.

Thank you in advance
Tony Nelson
Starpoint Solutions



BEGIN 1.1

>From tnelson@starpoint.com  Fri Feb 22 10:49:55 2008
Return-Path: <tn...@starpoint.com>
Message-ID: <29...@borneo.starpoint.com>
Date: Fri, 22 Feb 2008 10:49:53 -0500 (EST)
From: Tony Nelson <tn...@starpoint.com>
To: Test E-Email <tn...@starpoint.com>
Subject: wtf!
Mime-Version: 1.0
Content-Type: multipart/related;
    boundary="----=_Part_4_16328813.1203695393374"
Disposition-Notification-To: tnelson@starpoint.com
X-Confirm-Reading-To: tnelson@starpoint.com
Return-Receipt-To: tnelson@starpoint.com

------=_Part_4_16328813.1203695393374
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Your email client does not support HTML messages
------=_Part_4_16328813.1203695393374
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><b>THIS IS A TEST EMAIL MESSAGE</b><br/><br>This message would
have been sent to:<br><ul><li>hhubris@gmail.com</li></ul>This message
would have been carbon copied
to:<br><ul><li>tnelson@starpoint.com</li></ul><b>MESSAGE CONTENT
FOLLOWS</b><br/><br/> -- Tony Nelson <br />Starpoint Solutions <br />115
Broadway <br />2nd Floor <br />New York, NY  10006 <br />T: 212-238-0851
<br />F: 212-962-8839 </html>
------=_Part_4_16328813.1203695393374--

END 1.1


BEGIN 1.0

>From tnelson@starpoint.com  Fri Feb 22 10:54:49 2008
Return-Path: <tn...@starpoint.com>
Message-ID: <23...@mail.starpoint.com>
Date: Fri, 22 Feb 2008 10:54:48 -0500 (EST)
From: Tony Nelson <tn...@starpoint.com>
To: Test E-Email <tn...@starpoint.com>
Subject: test
Mime-Version: 1.0
Content-Type: multipart/alternative;
    boundary="----=_Part_0_12682218.1203695688568"
Disposition-Notification-To: tnelson@starpoint.com
X-Confirm-Reading-To: tnelson@starpoint.com
Return-Receipt-To: tnelson@starpoint.com

------=_Part_0_12682218.1203695688568
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Your email client does not support HTML messages
------=_Part_0_12682218.1203695688568
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><b>THIS IS A TEST EMAIL MESSAGE</b><br/><br>This message would
have been sent to:<br><ul><li>hhubris@gmail.com</li></ul>This message
would have been carbon copied
to:<br><ul><li>tnelson@starpoint.com</li></ul><b>MESSAGE CONTENT
FOLLOWS</b><br/><br/><p>now</p></html>
------=_Part_0_12682218.1203695688568--

END 1.0


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org