ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: Sending html attachment in ANT as part of the body.
Date Fri, 15 Aug 2003 08:02:46 GMT
the email task can contain several nested message subelements.
You probably want to have 2 nested message subelements :
this is untested, check usage of loadfile in the manual but it should give
you the right hint :

<loadfile property="html_text" file="foo/bar/message.html"/>
<mail ...parameters>
   <message>
Hi guys, this is my build report
   </message>
   <message mimetype="text/html">
     ${html_text}
   </message>
</mail>
Cheers,
Antoine
----- Original Message -----
From: "sunil singh" <sunil.singh@oracle.com>
To: <user@ant.apache.org>
Sent: Friday, August 15, 2003 1:45 AM
Subject: Sending html attachment in ANT as part of the body.


> Hi,
>
> I have an html attachment, which I want to send using ant's mail target.
>
> It all works fine, the only thing I would like to change about it is -
> that
> the html attachment should show as in the body of the message, rather
> than an attachment.
> Is there a way ant can allow me to do this?
>
> Thanks!
> Sunil--
>
>
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> 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


Mime
View raw message