ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Mail Attachement Problem
Date Fri, 21 Jul 2006 19:26:44 GMT
Hello Arminio,

try adding in the mail tag a message nested element.

 <mail mailhost="mysmtpserver">
   <from address="from@domain.com" />         <replyto
 address="replyto@domain.com" /> 
 
         <to address="to@domain.com" /> 

<message>delivery of oracle.ddl.jar</message> 
          <fileset dir="/home/jboss-4.0.1sp1/builds/lastbuild">
               <include name="oracle.ddl.jar"  /> 
 
     </fileset>
 
 
  </mail>

also, copy mail.jar and activation.jar to $ANT_HOME/lib, these 2 jars when present make the
mail task use an implementation of Sun to send the email which might work better.

Let us know how it goes.

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Fri, 21 Jul 2006 09:30:44 -0700 (PDT)
Von: Arminio Andrei <arminio.andrei@yahoo.com>
An: user@ant.apache.org
Betreff: Mail Attachement Problem

> Hi all,
> 
> I try to send a mail with <mail> task that will have an .jar attachement.
> My code is something like this:
>     
> 
> 
> <mail mailhost="mysmtpserver">
>   <from address="from@domain.com" />         <replyto
> address="replyto@domain.com" /> 
> 
>         <to address="to@domain.com" /> 
> 
>    -      <fileset dir="/home/jboss-4.0.1sp1/builds/lastbuild">
>               <include name="oracle.ddl.jar"  /> 
> 
>     </fileset>
> 
> 
>  </mail>
> 
> 
> The problem is: the .jar file is included in message body. How can I have
> a real attachement not a big message body useless?
> 
> Regards,
> Arminio A.
> 
>  		

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


Mime
View raw message