ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GNF, Contractor)" <>
Subject RE: jars required to send attachment via <mail> task
Date Wed, 31 Mar 2004 17:06:20 GMT
No positive result using JAF 1.0.2 & JavaMail 1.3.1

I still got following message as body mail

This message uses a character set that is not supported by the Internet Service.  To view
the original message content,  open the attached message. If the text doesn't display correctly,
save the attachment to disk, and then open it using a viewer that can display the original
character set. 

I saved the attachment as zip file and I cannot open it, nor use it (even using jar command
to see the content of the file).

Any other idea will be welcome


-----Original Message-----
From: Conelly, Luis (GNF, Contractor) 
Sent: Wednesday, March 31, 2004 10:54 AM
To: 'Ant Users List'
Subject: RE: jars required to send attachment via <mail> task


	I already used encoding="mime" with mail.jar & activation.jar in $ANT_HOME/lib, the mail
was sent with the file attached, but the file was not properly encoded (it is shown as a text
file, instead a jar / zip file; therefore it is not usable). When using encoding="plain" just
use the text representation of the zip file as body mail (as if you use the output produced
by use the [type] command).

	I am using Java Activation Framework 1.0.1 & Java Mail 1.2 (not pretty sure if this has
something related). I'll use the newest versions of these two jar files and try again.


-----Original Message-----
From: Antoine Lévy-Lambert []
Sent: Wednesday, March 31, 2004 10:33 AM
To: Ant Users List
Subject: Re: jars required to send attachment via <mail> task

you need encoding="mime"
and mail.jar, activation.jar

or encoding="plain" in order not to use the mail.jar, but ant's own 
sendmail implementation.


Conelly, Luis (GNF, Contractor) wrote:

>Sorry, I didn't mention my config:
>Win2K + ANT 1.6.1 + Sun JDK 1.4.1_02
>-----Original Message-----
>From: Conelly, Luis (GNF, Contractor) 
>Sent: Wednesday, March 31, 2004 10:19 AM
>Subject: jars required to send attachment via <mail> task
>    Which jar files do I need to send a zip / jar file as attachment using <mail>
task? I tried 
>   <target name="notify-attachment" description="Sends Mail Messages with attachments">
>        <mail mailhost="${}" mailport="${param.mail.port}" 
>              subject="${param.mail.subject}" >
>          <from address="${param.mail.sender}"/>
>          <to address="${param.mail.list}"/>
>          <fileset dir="${param.mail.dist.dir}">
>              <include name="**/*.zip"/>
>          </fileset>
>        </mail>
>    </target>
>but failed.
>	I added mail.jar & activation.jar to $ANT_HOME/lib, but still fails (sends the mail,
but the attachment is not correctly set.
>	I tried to use [encoding="mime"] & [messagemimetype="mime"] attributes in <mail>
task, but the same result with first and failed with second.
>	I'd appreaciate any ideas, because I've ran out of them
>	Regards
>Luis G Conelly
>Phone (52) 449.910.7308  DC *879.7308
>Mobile (52) 449.123.8749
>Fax     (52) 449.910.7801

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message