ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: JAVAMAIL problem
Date Tue, 02 Oct 2001 15:06:34 GMT
Do you have a mail server running on localhost?  The error message seems to
indicate you don't, but since it worked in one of your examples and not the
other this does not seem like the cause.   But if localhost is not a mail
server, you need to specify one using the mailhost attribute of <mimemail>.

Do you get more exception details using ant -debug?   Those would likely be
useful for tracking down the cause of the problem.

    Erik


----- Original Message -----
From: <philippe.lavoie@cactus.ca>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, October 02, 2001 7:45 AM
Subject: RE: JAVAMAIL problem


> I have the same problem
>
> Result is
>
> BUILD FAILED
>
> /home/plavoie/project/vbc/build.xml:662: javax.mail.MessagingException:
> Can't send command to SMTP host;
>   nested exception is:
> java.net.SocketException: Socket closed
>
>
>
> Relevant part of the build.xml is
>
> <!--
>       <mimemail messageMimeType="text/plain"
>                 message="Junit test run results for ${TODAY}."
>                 tolist="vbc@jungle.cactus.ca"
>                 subject="JUnit Test Results: ${TODAY}"
>                 from="veev@jungle.cactus.ca">
>          <fileset dir="${reports.dir}/html">
>             <include name="*.html"/>
>          </fileset>
>       </mimemail>
> -->
>
>       <mimemail messageMimeType="text/html"
>                 messageFile="${reports.dir}/html/junit-noframes.html"
>                 tolist="vbc@jungle.cactus.ca"
>                 subject="JUnit Test Results: ${TODAY}"
>                 from="vbc@jungle.cactus.ca">
>       </mimemail>
>
> The commented part works fine, however the other generates the error
above.
>
> I wanted to view the HTML page directly inside the mail browser instead of
> having to see the attachement. Really odd error, socket closed ???
>
> Perhaps Detlef has another error though.
>
> Phil
>
>
> Philippe Lavoie                            (819) 778-0345  cell: (819)
> 664-9881
> Software Engineer
> philippe.lavoie@cactus.ca
>                           Cactus Communication Internet
>
>
> > -----Original Message-----
> > From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> > Sent: Tuesday, October 02, 2001 8:54 AM
> > To: ant-user@jakarta.apache.org
> > Subject: Re: JAVAMAIL problem
> >
> >
> > Could you give us an idea of what happens when you try
> > <mimemail>?   What
> > error message are you receiving?
> >
> >
> > ----- Original Message -----
> > From: <detlef.brendle@canoo.com>
> > To: <ant-user@jakarta.apache.org>
> > Sent: Tuesday, October 02, 2001 2:01 AM
> > Subject: JAVAMAIL problem
> >
> >
> > > has anybody used mimemail with ant1.4 ?
> > >
> > > If I download javamail and all other packages I cannot add a
> > application/zip
> > > mimemail to it.
> > >
> > > how can I do this,
> > >
> > > detlef
> > >
> >
>


Mime
View raw message