ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nb123 <nbos...@gmail.com>
Subject Re: AW: Configuring email body from a text file
Date Wed, 10 Jan 2007 13:02:07 GMT

i tried doing this but its not working. 
i need to read the contents from the text file and send it as the email
body. 
but instead the "C:\trainee..." is going as body of the email.

messageFile did not work. please help.

This is the build.xml
<?xml version="1.0"?>


<project name="Ant mail Task" default="mail" basedir=".">
<property name="file" value="C:\trainee\css.txt" />

<target name="mail">
     <mail mailhost="203.200.230.211" subject="test">
		  <from address="admin@..." />
		  <replyto address="admin@...." />
		  <to address="admin@....." />
		  <message>${file}</message>  

		
			<fileset dir="dist">
			  <include name="**/*.jpg"/>
			</fileset>
	
			
		</mail>
</target>
</project>





Jan.Materne wrote:
> 
> I am very sure you havent had a loo at the manual of <mail>.
> There is a nice attribute ...
> 
> Jan 
> 
>>-----Urspr√ľngliche Nachricht-----
>>Von: nb123 [mailto:nbose83@gmail.com] 
>>Gesendet: Mittwoch, 10. Januar 2007 12:23
>>An: user@ant.apache.org
>>Betreff: Configuring email body from a text file
>>
>>
>>How can i make the body of the email by reading from a text file. 
>>please help with code if possible.
>>--
>>View this message in context: 
>>http://www.nabble.com/Configuring-email-body-from-a-text-file-t
>>f2951935.html#a8255909
>>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
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Configuring-email-body-from-a-text-file-tf2951935.html#a8256987
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