ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Corley \(AT/LMI\)" <>
Subject RE: problem sending attachments
Date Wed, 10 Jan 2007 10:10:58 GMT
You need to add the java activation framework and java mail jars to your
They don't come with Ant or Java and can be download here:

And here

Download the 2 jars, add them to your ant classpath....and it should
work fine.

By the way, the Ant documentation tells you about this on the manual
page for the mail task. 

This communication is confidential and intended solely for the
addressee(s). Any unauthorized review, use, disclosure or distribution
prohibited. If you believe this message has been sent to you in error,
please notify the sender by replying to this transmission and delete
the message without disclosing it. Thank you.
E-mail including attachments is susceptible to data corruption,
interception, unauthorized amendment, tampering and viruses, and we only
send and receive e-mails on the basis that we are not liable for any
such corruption, interception, amendment, tampering or viruses or any
consequences thereof.

-----Original Message-----
From: nb123 [] 
Sent: 10 January 2007 11:05
Subject: problem sending attachments

i've tried sending attachments with the mail. the normal text mails are
going through. but attachments are not. 

i am getting an error::
The <mail> type doesn't support the nested "attachments" element.

 please help me out.

my build.xml file:

<?xml version="1.0"?>

<project name="Ant mail Task" default="mail" basedir=".">

<target name="mail">
     <mail mailhost="" subject="test">
		  <from address="" />
		  <replyto address="" />
		  <to address="" />
		  <message>TEST MAIL FROM ANT</message>  
		        <fileset dir="dist">
			<include name="**/*.jpg"/>

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message