You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Johan Kumps <jo...@pandora.be> on 2003/02/13 08:54:59 UTC
Tag question
GletsjerHi all,
I'm using the jakarta mailer taglib. But I have a problem with specifiying
the path to the file to be attached to the e-mail I send.
Please consider following code :
<%String path = "data/myapp" + "/myFile.txt";%>
<mt:mail to="you@mydomain.be" from="me@mydomain.be" subject="mail
taglib" server="mailhost">
<mt:message>MyMessage</mt:message>
<mt:attach file='<%=path%>'/>
<mt:send/>
</mt:mail>
Kind regards,
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003