If you plan to run nightly automated builds via a scheduler of some sort,
like Anthill or CruiseControl, they automatically (well, not really, you
have to check a box to send out emails) take care of it.
Or you can write your own ant.file; change the paths or prop names
accordingly. You can also tell it to send the log files as attachment and
turn off the mime attrib.
<project name="Send Mail" default="mailer" basedir=".">
<!-- <property name="mailhost" value="${mail.host}"/> -->
<property environment="env" />
<property file="${env.HOME}/.build.properties" />
<property file="build/build.properties" />
<target name="mailer">
<mail from="[EMAIL PROTECTED]"
tolist="[EMAIL PROTECTED]"
subject="Build${build.number} by Anthill is in progress..."
messagefile="build/msgone.txt"
mailhost="${mail.host}"/>
</target>
</project>
----Original Message Follows----
From: <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <[email protected]>
To: <[email protected]>
Subject: AW: How to embed a link in email notification?
Date: Mon, 10 Apr 2006 18:57:00 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc6-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 10
Apr 2006 09:57:31 -0700
Received: (qmail 28494 invoked by uid 500); 10 Apr 2006 16:57:27 -0000
Received: (qmail 28483 invoked by uid 99); 10 Apr 2006 16:57:27 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 09:57:27 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2006 09:57:26 -0700
Received: from z011100.bk.fin.local (z011104.bk.fin.local
[172.18.101.140])by dnsinet.rzf-nrw.de (8.13.6/8.13.6) with ESMTP id
k3AGuwDc015946for <[email protected]>; Mon, 10 Apr 2006 18:56:58 +0200
Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local
with Microsoft SMTPSVC(6.0.3790.0); Mon, 10 Apr 2006 18:57:01 +0200
X-Message-Info: JGTYoYF78jGaUiWV/JBIitdFx+l0yrhVLepfIhD0+dI=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[email protected]>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list [email protected]
X-ASF-Spam-Status: No, hits=0.6 required=10.0tests=NO_REAL_NAME
X-Spam-Check-By: apache.org
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: How to embed a link in email notification?
Thread-Index: AcZcv2rdaRW3F/xfQbq31jh/tsKocwAAE9lQ
X-OriginalArrivalTime: 10 Apr 2006 16:57:01.0193 (UTC)
FILETIME=[C9459F90:01C65CBF]
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
Use HTML or just print the URL. Many eMail clients convert URLs to links.
Jan
>-----Ursprüngliche Nachricht-----
>Von: eagerbeaver [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 10. April 2006 18:54
>An: [email protected]
>Betreff: How to embed a link in email notification?
>
>
>I am a newcomer to Ant. I am using the Mail task and Message
>element to send email notification of each nightly build with
>build reports attached. But I want to be able to embed a link
>to the shared folder location of the nightly build reports instead.
>
>How do I do this?
>
>
>--
>View this message in context:
>http://www.nabble.com/How-to-embed-a-link-in-email-notification
--t1426206.html#a3845798
>Sent from the Ant - Users forum at Nabble.com.
>
>
>---------------------------------------------------------------------
>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]
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]