*
The moose likes JSP and the fly likes Jakarta Mailer tags attachment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jakarta Mailer tags attachment problem" Watch "Jakarta Mailer tags attachment problem" New topic
Author

Jakarta Mailer tags attachment problem

Raymond Tchang
Greenhorn

Joined: Jun 03, 2004
Posts: 1
Hello:

I have just downloaded the Jakarta Mailer-1.1 and installed on my PC. Following the documentation of Jakarta.org, I tested the following code to send an email with attachment file :

<mt:mail server="EML" to="absc@mycompany.com"
from="solutions@mycompany.com" subject="mail test">
<mt:message>test test attachemnt</mt:message>
<mt:attach file="portfoliodocs/ProdBrochure.pdf" />
<mt:send/>
</mt:mail>

The problem is that I received this email immediately but no attachment included. I tried different email address, still can not get the attachment, just the email.

The file path is relative to the root of web server (tomcat/webapps/apptest/portfoliodocs/...). I did not get any error message running this code. I am using Tomcat 4-1-30.

Any help is greatly apprciated.
[ June 03, 2004: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

I don't use the Jakarta Mailer tags so I don't think I can help you with your problem. But one correction: the mailer tags are a set of proprietary custom tags developed under the Jakarta project and are not a part of the standardized JSTL. I have edited your topic accordingly so as not to confuse anyone.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Jakarta Mailer tags attachment problem
 
Similar Threads
JSTL Jakarta Mailer Tag
Problem sending mail using JSTL
Mails thru JSP
Problems with JavaMail 1.2 using Tomcat
send a jsp page on to email