ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankita Kapadia" <ankita_kapa...@persistent.co.in>
Subject RE: Ant 1.6.2 email with attachmennt
Date Fri, 27 Aug 2004 09:01:45 GMT
The "Mail" task can successfully send mails with attachments,
I guess the path to the file needs to be a complete one
so I have a varaiable like "prop.buildlocation" in the conf file
where all my log files will be stored and I delete these at
the end of the build.

<mail failonerror="false" mailhost="smtp.persistent.co.in" subject="BUILD
FAILED :-( ${TODAY}" user="${mailid}" password="${pass}"
files="${prop.buildlocation}\clearcase.log,${prop.buildlocation}\build.log"
tolist="${prop.mailtolist}" >

~Ankita.

-----Original Message-----
From: Inman, Peter [mailto:peterinman@mcpplc.com]
Sent: Friday, August 27, 2004 1:34 PM
To: 'user@ant.apache.org'
Subject: Ant 1.6.2 email with attachmennt


I'm having trouble sending an attachment with an email. I had this problem
with ant1.5.3, so it's not 1.6 related.
 
I'd be grateful if someone could point me to where I'm going wrong. I get
the mail message, but no attachments.
 
     <target name="sendMailTest" depends="init">
     <mail mailhost="128.1.1.101" subject="Destin8 Build - BuildLog"
encoding="plain" tolist="peterinman@mcpplc.com">
        <from address="Destin8Build"/>
        <message>Build Log File</message>
        <fileset dir=".">
          <include name="builddestin8.properties"/>
        </fileset>
     </mail>
   </target>
 
Pete


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message