This is what I have now.
And I using
Apache Ant version 1.6.1 compiled on February 12 2004
However, I don't see the Activation.jar and the mail.jar in
$ANT_HOME/lib
<property name="mail.fromlist" value="[EMAIL PROTECTED]"/>
<property name="mail.tolist" value="[EMAIL PROTECTED]"/>
<mail from="${mail.fromlist}"
tolist= "${mail.tolist}"
subject= "test"
files = "courrier.txt"
mailhost = "mail-relay-dal.intervoice.int"
mailport ="25"
failonerror = "false"/>
-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2005 5:26 PM
To: Ant Users List
Subject: RE: sending email to multiple destination
If one target works and the other does not, libs are not the issue,
right? It would appear to be the usage.
-Rob A
> -----Original Message-----
> From: George Dibi [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 2:56 PM
> To: Ant Users List
> Subject: RE: sending email to multiple destination
>
>
> I am trying to use 2 separate targets.
> This one works well:
> <target name="mymail">
> <mail mailhost="mail-relay-dal.intervoice.int" mailport="25"
> subject="isoft36 build notification">
> <from address="[EMAIL PROTECTED]"/>
> <replyto address="[EMAIL PROTECTED]"/>
> <to address="[EMAIL PROTECTED]"/>
> <message>The build failed</message>
> <fileset dir="d:/autobuild-report/appsupport1"
> includes="*.report"/>-->
> <fileset dir="d:/intv/dat" includes="*.err"/>
> </mail>
> </target
>
> The second one doesn't:
>
> <mail from = "me"
> tolist = "you"
> subject = "test"
> files = "courrier.txt"
> mailhost = "mail-relay-dal.intervoice.int"
> mailport ="25"
> failonerror = "false"/>
>
> "me" is a text file with one email address
> "you" is a text also with couple email addresses.
>
> I am using, I think an older version of ANT maybe 1.5x. I
> didn't install
> it.
> Do you think, I need a newer version?
>
> -----Original Message-----
> From: Matt Benson [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 31, 2005 4:45 PM
> To: Ant Users List
> Subject: RE: sending email to multiple destination
>
> What version of Ant are you using? Did you build it
> yourself? Do you have the required libraries? It
> appears that the error you get is thrown before your
> <to> elements are used and after they are set. Can
> you send mail to a single recipient using the to
> attribute? A single nested <to> element?
>
> --- George Dibi <[EMAIL PROTECTED]> wrote:
>
> >
> > It acts like a mail is sent with the javax error, in
> > conclusion no mail
> > is sent.
> >
> >
> >
> > [mail] Failed to initialise MIME mail:
> > javax/mail/MessagingException
> > [mail] Sending email: test
> > [mail] Sent email with 1 attachment
> >
> > il:
> > [mail] Failed to initialise MIME mail:
> > javax/mail/MessagingException
> > [mail] Sending email: isoft36 build notification
> > [mail] Failed to send email
> >
> > D FAILED
> > cadm_gdibi3\buildVOB\autobuild\buildiso.xml:31: IO
> > error sending mail
> >
> > -----Original Message-----
> > From: Matt Benson [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 31, 2005 3:50 PM
> > To: Ant Users List
> > Subject: RE: sending email to multiple destination
> >
> > --- George Dibi <[EMAIL PROTECTED]> wrote:
> >
> > > I tried that it didn't work
> > >
> > > <to address="[EMAIL PROTECTED]" />
> > > <to address="[EMAIL PROTECTED]" />
> > >
> > What was the result?
> >
> > -Matt
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.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]
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.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]
>
>
>
---------------------------------------------------------------------
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]