Hi,
If you are using a recent nightly build of Ant, you can use a nested
<message> element:
<mail to=".." from="..">
<message>
Hello,
Some spam.
</message
</mail>
Might not be worth upgrading for, however.
Adam
> -----Original Message-----
> From: Eddie Bernard [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 27 February 2002 7:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: Carriage returns in message using <mail>
>
>
> Does anyone know how to embed carriage returns in a message when using the
> <mail> task:
>
> Here's what I'm trying but doesn't work:
>
> <target name="report-notification"
> depends="copy-buildlog"
> description="E-mail notification of build log and JUnit
> reports">
> <echo message="Sending notification of build log and JUnit repor
> ts"/>
> <mail from="[EMAIL PROTECTED]"
> tolist="${email.list}"
> subject="Results on nightly build"
> mailhost="myserver"
> messageMimeType="text/html"
> message="All-
>
> The nightly build has completed.\n\n
>
> The build log can be viewed online at
> http://myserver/Projects/NightlyBuildResults/index.html. \n\n
>
> The JUnit results can be viewed online at
> http://pong.digitalthink.com:8675/Projects/NightlyBuildResults/JUn
> it/index.h
> tml. \n\n
>
> Please address ant questions to mailto:[EMAIL PROTECTED]. "/>
> </target>
>
> (Addresses and location modified to protect the innocent ;) ).
>
>
>
> Cheers!
> Eddie
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>