I agree with Jan,
        I've a setup pretty close to what you're looking for in use at work.
        But to do this you'll need to add the javamail and jaf jars to the ant 
bootloader classpath...
        Which you can do more or less as follows:

        ant -f build.xml -lib /directory/containing/javamail.jar/ -lib 
/directory/containing/jaf.jar/

        If you don't add the directories containing those two jars, Ant won't 
be able to process MIME mail, and will send a UUE encoded message instead, 
which will result in your mail showing the HTML source code instead of the 
properly formatted content.
        You can grab javamail here:
        http://java.sun.com/products/javamail/downloads/index.html
        And you can grab JAF (JavaBeans Activation Framework) here:
        http://java.sun.com/products/javabeans/jaf/downloads/index.html

Hope this helps,
/Dave

        

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2006 08:08
To: user@ant.apache.org
Subject: AW: HTML tags inside ANT..?

<mail>
    <message src="message.html" mimetype="text/html"/> </mail>

I would use an external message-file, because html (message) inside xml 
(buildfile) is very hard to maintain ... 


Jan 

>-----Ursprüngliche Nachricht-----
>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 20. September 2006 07:14
>An: user@ant.apache.org
>Betreff: HTML tags inside ANT..?
>
>
>Hi,
>
>Presently am using ant 1.5.4 version for building java application. I 
>used to generate mails to Lotus Notes server upon either build success 
>or failure.
>
>Presently the mail generated will have some texts and attached error 
>log file. I want to use HTML tags inside ant and expexting the 
>generated mail should
>
>looks like a HTML page.
>
>Any body have idea abt this,  which will be helpful
>
>rgds,
>anand
>
>This e-Mail may contain proprietary and confidential information and is 
>sent for the intended recipient(s) only.
>If by an addressing or transmission error this mail has been 
>misdirected to you, you are requested to delete this mail immediately. 
>You are also hereby notified that any use, any form of reproduction, 
>dissemination, copying, disclosure, modification, distribution and/or 
>publication of this e-mail message, contents or its attachment other 
>than by its intended recipient/s is strictly prohibited.
>
>Visit us at http://www.polaris.co.in
>
>---------------------------------------------------------------------
>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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to