ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nb123 <nbos...@gmail.com>
Subject problem sending attachments
Date Wed, 10 Jan 2007 10:04:47 GMT

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="203.169.230.211" subject="test">
		  <from address="admin@zimbra.vsnl.in" />
		  <replyto address="admin@zimbra.vsnl.in" />
		  <to address="admin@zimbra.vsnl.in" />
		  <message>TEST MAIL FROM ANT</message>  
			
		<attachments>
		        <fileset dir="dist">
			<include name="**/*.jpg"/>
		         </fileset>
                                 </attachments>

     </mail>
</target>
</project>
-- 
View this message in context: http://www.nabble.com/problem-sending-attachments-tf2951607.html#a8254870
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message