Title: Gletsjer

Hi 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,

Reply via email to