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="[EMAIL PROTECTED]" />
<replyto address="[EMAIL PROTECTED]" />
<to address="[EMAIL PROTECTED]" />
<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:[EMAIL PROTECTED]
>>Gesendet: Mittwoch, 10. Januar 2007 12:23
>>An: [email protected]
>>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: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]