From: Kevin Cummings [mailto:[EMAIL PROTECTED]]

> Is there any way to format the message that is sent from the 
> Mail task in 
> ANT?? I've tried the following in an attempt to get a line 
> break in the 
> e-mail and nothing has worked:

Use a decimal entity.
The following worked for me (on Unix)

<?xml version="1.0" encoding="UTF-8"?>

<project name="mailer" default="default" basedir=".">

        <target name="default">
                <tstamp/>
                <echo message="Sending mail to ${user.name}"/>
                <mail from="Build Monkey" tolist="${user.name}" subject="Build info"
                        message="Build Status&#10;Date: ${DSTAMP}&#10;Time: 
${TSTAMP}"/>
        </target>

</project>

Reply via email to