Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 5726 invoked from network); 3 Jun 2008 17:25:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 17:25:08 -0000 Received: (qmail 42060 invoked by uid 500); 3 Jun 2008 17:25:09 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 41973 invoked by uid 500); 3 Jun 2008 17:25:09 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 41962 invoked by uid 99); 3 Jun 2008 17:25:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 10:25:09 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 17:24:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 18249234C12E for ; Tue, 3 Jun 2008 10:24:45 -0700 (PDT) Message-ID: <462566214.1212513885096.JavaMail.jira@brutus> Date: Tue, 3 Jun 2008 10:24:45 -0700 (PDT) From: "Etienne Jouvin (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (EMAIL-80) Message incorrectly displayed on outlook and Outlook Web access MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Message incorrectly displayed on outlook and Outlook Web access --------------------------------------------------------------- Key: EMAIL-80 URL: https://issues.apache.org/jira/browse/EMAIL-80 Project: Commons Email Issue Type: Bug Affects Versions: 1.1 Reporter: Etienne Jouvin Priority: Minor Hello. I try to write HTML Email with version 1.1 and 1.0. With version 1.1, I found that the email was not correctly display when there is no image embed into the mail content. Outlook web access only display the text message and the HTML content is attached as an attachment. But, when there is at least one image, the message is corerctly displayed. This does not happends with version 1.0. Here is the source code used: HtmlEmail email = new HtmlEmail(); email.setHostName("192.32.16.76"); email.setFrom("user@domain.com"); email.addTo("user1@domain.com"); String s_RessourceName = "support.gif"; URL url = TestLoader.class.getResource(s_RessourceName); StringBuffer sb_MsgContent = new StringBuffer(); sb_MsgContent.append("
mon message pour voir ma classe sans image
"); sb_MsgContent.append(""); email.setHtmlMsg(sb_MsgContent.toString()); email.setTextMsg("Your email client does not support HTML messages"); email.send(); And with image HtmlEmail email = new HtmlEmail(); email.setHostName("192.32.16.76"); email.setFrom("user@domain.com"); email.addTo("user1@domain.com"); String s_RessourceName = "support.gif"; URL url = TestLoader.class.getResource(s_RessourceName); String s_RessourceId = email.embed(url, "Support logo"); StringBuffer sb_MsgContent = new StringBuffer(); sb_MsgContent.append("
mon message pour voir ma classe sans image
"); sb_MsgContent.append("

"); sb_MsgContent.append(""); email.setHtmlMsg(sb_MsgContent.toString()); email.setTextMsg("Your email client does not support HTML messages"); email.send(); Regards Etienne Jouvin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.