I am using the mailer tag library, and users of MS Outlook who receive email sent by the tag library also get the headers of the message: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Status:
You're supposed to get the headers. Whether or not you see them in outlook should depend on settings in the mail client that determine if headers should be viewed or not.
This is not an Outlook setting. This is definately a bug. The reasons I know this are the following: 1) It happens in all Outlook clients 2) The headers appear in the body of the message not as a special display. 3) Headers are not shown in other messages for the people using these Outlook clients. 4) I created a class that used JavaMail to send mail directly (no tags), and it sent the mail to the person and the headers did not appear.
For further information, the headers displayed in the body are shown below as they are shown in the message: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit
Another thing I have noticed and a work around is that if instead of using the setRecipient tags and the subject tag I just use the <mt:mail subject="..." to="..." from="..."> it works fine and does not add the extra headers. Unfortunately, this means for my purposes, I have to change the tld to make the rt value modifiable. Also, the difference in the source between these two methods are that if I use the tags (causing the problem), the source is: <snip> To: Gabe <gabe@groundzero.com> Subject: My subject Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit </snip> and in the fixed way, the space is removed: <snip> To: gabe@groundzero.com Subject: My subject Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit </snip>
Is this perhaps a problem with extra whitespace in the JSP page in which the tags are being used? Could you attach the *exact* JSP code that causes this problem? (Posting it as an attachment to this bug report would be best.)
Add the taglibs-dev list, so that people can see changes to this bug report.
I do not see this issue. I have been using Outlook and Outlook Express for testing, and have not been able to reproduce the problem. If you are still seeing this with the most recent version of the taglib, please attach a complete sample JSP page to this bug report, and reopen.