ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <Luis1.Cone...@ge.com>
Subject RE: sending email to multiple destination
Date Mon, 31 Jan 2005 23:21:38 GMT
Then, you either need to add them to one of those directories (if you are
using ant < 1.6.1, you will have to add them to the $ANT_HOME/lib directory)
or specify where Ant can find them by using the -lib switch.



-----Original Message-----
From: George Dibi [mailto:George.Dibi@intervoice.com]
Sent: Monday, January 31, 2005 5:03 PM
To: Ant Users List
Subject: RE: sending email to multiple destination


I don't have these files in $ANT_HOME\lib or $HOME\.ant
 

-----Original Message-----
From: Conelly, Luis (GE Energy, Non GE, GENE)
[mailto:Luis1.Conelly@ge.com] 
Sent: Monday, January 31, 2005 5:03 PM
To: Ant Users List
Subject: RE: sending email to multiple destination


-----Original Message-----
From: George Dibi [mailto:George.Dibi@intervoice.com]
Sent: Monday, January 31, 2005 4:49 PM
To: Ant Users List
Subject: RE: sending email to multiple destination


Where do I verify if these jars exist?
[Conelly, Luis]  jars must exist either in $ANT_HOME/lib or
$HOME/.ant/lib
or define the location by using the -lib switch in the command line [1]


Is the content of ${param.mail.list} is mail addresses separate by
comma? 
[Conelly, Luis] Yes, it is


How and where do you define them? 
[Conelly, Luis] You can define it as a simple property in your build
file,
such as:

<property name="param.mail.list"
value="me@server.com,you@server.com,all@server.com"/>

You also can define it as a simple property in a .properties file and
then,
load it at the begin of your build file

	<property file="./build.properties"/>


[1] http://ant.apache.org/manual/running.html#libs


-----Original Message-----
From: Conelly, Luis (GE Energy, Non GE, GENE)
[mailto:Luis1.Conelly@ge.com] 
Sent: Monday, January 31, 2005 4:49 PM
To: Ant Users List
Subject: RE: sending email to multiple destination

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:George.Dibi@intervoice.com]
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:gudnabrsam@yahoo.com] 
Sent: Monday, January 31, 2005 3:50 PM
To: Ant Users List
Subject: RE: sending email to multiple destination

--- George Dibi <George.Dibi@intervoice.com> wrote:

> I tried that it didn't work
> 
> <to address="you@your.org" />
> <to address="me@my.org" />
> 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




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

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




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

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




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

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


Mime
View raw message