ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Luce <>
Subject RE: Machine independent newline character
Date Tue, 12 Dec 2000 12:32:35 GMT
That makes sense.  How do I specify the new line in the text of the message?

  <mail from=""
        message="line 1\nline2\nline3"
        subject="bletch" />

This command sends the \n as part of the message.

-----Original Message-----
From: Stefan Bodewig []
Sent: Tuesday, December 12, 2000 7:15 AM
Subject: Re: Machine independent newline character

Marc Luce <> wrote:

> I use the mail task to let management know when a "build" is
> performed.  I need to add a machine independent newline character to
> the body of the message.

You don't.

SMTP uses \r\n as line separator and it's up to the receiver to
translate this back into a plattform dependent line separator. The
class used to send the email will ensure raw \n will be converted to
\r\n so you shouldn't need to care at all.


View raw message