commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajarshi (JIRA)" <>
Subject [jira] Created: (EMAIL-73) Format generated by HtmlEmail component causing problem
Date Fri, 14 Mar 2008 03:35:24 GMT
Format generated by HtmlEmail component causing problem

                 Key: EMAIL-73
             Project: Commons Email
          Issue Type: Bug
            Reporter: Rajarshi

We are facing some problems while we are using Apache HtmlEmail component for sending emails.

The content of the email that we have as part of our application does not have any <pre>
tags defined. The content defined is as below:
<font face="arial,helvetica,sans-serif" size="2">13-03-2008 <br />
Dear Sir/Madam, <br />
</font><font face="arial,helvetica,sans-serif" size="2">
<div align="center">
<strong>This is an test email</strong>
<br />
This is to test the pre tags<br />
<br />
</font><font face="arial,helvetica,sans-serif" size="2">Yours faithfully,<br
<img><br />

But as soon as we are using the below code 

if (iataMail.isHtmlFormat()) {
   HtmlEmail htmlEmail = new HtmlEmail();
   if (StringUtils.isNotEmpty(iataMail.getMessage())) {
   // set htmlEmail to email reference
   email = htmlEmail;
the email message is been wrapped with a <pre> tag which leads to the extra spaces in
the email content when viewed through any mail client
We need your help to find out if this is an issue with the Apache mailing component / something
that we need to take care in order to resolve this.

Please also find attached the content of the email been generated with and without pre tags

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message