jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vianen, Jeroen van" <jeroen.van.via...@satama.com>
Subject RE: New version of Mailer tag
Date Fri, 06 May 2005 21:22:44 GMT
Hi Pete,

Have you tried the mailer2 taglib that's in the sandbox?


It might have solved all your problems already. Please let me know.

It does require a JSP 2.0 container like Tomcat 5.5.x or Resin 3.x.



-----Original Message-----
From: pete.storey@kisstechnologies.co.uk
Sent: donderdag 5 mei 2005 19:27
To: taglibs-dev@jakarta.apache.org
Subject: New version of Mailer tag

having been using the Mailer taglib for some while to send out all the
emails from our sites and it has become obvious that there are a number of
limitations and problems with it, specifically:

- You cannot produce a multi-part plain text and HTML email.  This means

you can send decent mails and help them get through spam filters by avoiding
obvious problems (eg HTML only mails).[Feature]
- Attaching files seems to conflict with Tomcat's tag pooling, so if you

attach a file then every time the tag is run, the file is attached an extra
time to the email, thus by say the 5th run of it, there are 5 attachments of
the same file. [Bug]
- You cannot set the filename of a file you attach to an arbitrary one. 
This means if you are attaching from a URL say with some parameters, you

get a pretty nasty filename. [Feature]

To this end, I have written the necessary code to achieve the features and
fix the bug.  It has meant changing MailTag, MessageTag, AttachTag and
SendTag, as well as adding an attribute to the taglib.tld for the AttachTag
(called filename).  The new version works exactly the same as before but you
can now put one or two message tags within the body of the mail tag:

<mailer:mail server="localhost">

        <mailer:setrecipient type="to">a@b.com</mailer:setrecipient>
        <mailer:message type="text">

This is a test email message.

        <mailer:message type="html">

<p>This is a test email message.</p>


        <mailer:attach url="" filename="yourfile.html">


What I don't know is how to contribute these features.  Anyone got any help
here or can someone do it for me?  I guess it's really a new point version
rather than a patch, though it is of course backwards compatible.


Kiss Technologies


** Please note, we have moved! **
131/132 High Holborn

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923
Out of hours
Support phone 020 7692 9933

To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org

View raw message