Do you have the libraries mentioned in the Manual?? Mail uses a couple of
them (activation.jar & mail.jar, I believe).

This is an excrept of one of my build files. This sends mail messages to
multiple addresses:

-----------------
        <mail mailhost="${mail.host}" mailport="${mail.port}"
              subject="${param.mail.subject}"
              encoding="plain"
              from="${param.mail.sender}" tolist="${param.mail.list}"
              files="${param.mail.file}">
              <message src="${param.mail.message}"/>
        </mail>
-----------------

See http://ant.apache.org/manual/install.html#librarydependencies for more
information about library dependencies

Regards
luis

-----Original Message-----
From: George Dibi [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2005 3:58 PM
To: Ant Users List
Subject: RE: sending email to multiple destination



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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to