Re: Mail Task

2012-04-02 Thread Eric Fetzer
o: Ant Users List >> Sent: Tuesday, March 27, 2012 6:11 PM >> Subject: Re: Mail Task >> >> The email address no longer exists. For some reason it won't even try to >> send the email. Even the valid addresses don't get sent to. >> >> >>

Re: Mail Task

2012-03-29 Thread Eric Fetzer
> something > > > > From: Eric Fetzer > To: Ant Users List > Sent: Tuesday, March 27, 2012 6:11 PM > Subject: Re: Mail Task > > The email address no longer exists. For some reason it won't even try to > send the email. Even the valid addresses do

Re: Mail Task

2012-03-27 Thread Vimil Saju
I've seen this issue only when the email format is invalid. are you sure there are no errors in the email address format? like an @ missing or something From: Eric Fetzer To: Ant Users List Sent: Tuesday, March 27, 2012 6:11 PM Subject: Re: Mail Task

Re: Mail Task

2012-03-27 Thread Eric Fetzer
ddress no longer exists? If the email address doesn't exist should'nt > the sender get back a bounced email notification? > > > > From: Eric Fetzer > To: Joe Attardi > Cc: Ant Users List > Sent: Tuesday, March 27, 2012 12:24 P

Re: Mail Task

2012-03-27 Thread Vimil Saju
Users List Sent: Tuesday, March 27, 2012 12:24 PM Subject: Re: Mail Task The point isn't to send the email to the invalid address.  It's that I'm not informed when they become invalid and don't notice that the mails stop being sent...  Next thing I know, users are uninforme

Re: Mail Task

2012-03-27 Thread Joe Attardi
What's the point of sending email to an invalid address? :) On Tue, Mar 27, 2012 at 2:22 PM, Eric Fetzer wrote: > All, > > I'm having the mail task fail if the tolist or cclist have ANY invalid > addresses. > > [mail] Sending email: My Subject > [mail] Failed to send email: Invalid Add

Re: Mail Task

2012-03-27 Thread Eric Fetzer
The point isn't to send the email to the invalid address. It's that I'm not informed when they become invalid and don't notice that the mails stop being sent... Next thing I know, users are uninformed of prod deploys coming and I have to figure out which addresses are invalid to fix it. On

RE: Mail task on Target failure

2011-08-05 Thread Martin Gainty
mporte quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucu

Re: Mail task on Target failure

2011-08-05 Thread Laura Dean
I know TeamCity does keep the logs, or can be configured to do so. It does for us. Laura On Fri, Aug 5, 2011 at 1:16 PM, glenn opdycke-hansen wrote: > +1 CI Servers. > It can be used to call an Ant script and email if there is success or > failure. We notice that for some CI servers the log wa

Re: Mail task on Target failure

2011-08-05 Thread glenn opdycke-hansen
+1 CI Servers. It can be used to call an Ant script and email if there is success or failure. We notice that for some CI servers the log was not kept, which is important for error situations. But they are easy to set up, so it worth investigating. --glenn On Fri, Aug 5, 2011 at 09:32, Laura D

Re: Mail task on Target failure

2011-08-05 Thread Laura Dean
To take a different approach: have you considered using a continuous integration server? This is exactly the sort of thing they're good at, and then your ant setup could just worry about building. I've used TeamCity and have heard good things about Jenkins ( http://jenkins-ci.org/), but probably

RE: Mail task on Target failure

2011-08-05 Thread Adam Bruss
You could let the build go if an exec fails and store the result in an xml file. Then at the end check all the results and if one is non-zero fail after sending mail. To sum up, store the results of your tasks and check them all at the end. Send mail and then use the task if you need to fail

Re: Mail task on Target failure

2011-08-05 Thread Stefan Bodewig
On 2011-08-05, vino_hymi wrote: > I have ant project where there is set of targets. After successful > completion of all targets I call mail target at the end to send a mail with > attached logs with message build successful. > Now, my challenge is if one of the target fails then build exits so i

Re: Mail task on Target failure

2011-08-05 Thread Parag Doke
There is the try/catch task in antcontrib (http://ant-contrib.sourceforge.net/tasks/tasks/index.html) that allows you to catch exceptions in tasks. I haven't tried this anytime ... but maybe you could try calling a target within such a block. Thanks, Parag Doke Save paper, save trees. Do not print

Re: Mail task on Target failure

2011-08-05 Thread Vimil Saju
Use the trycatch task from ant-contrib From: vino_hymi To: user@ant.apache.org Sent: Friday, August 5, 2011 2:02 AM Subject: Mail task on Target failure Hi, I have ant project where there is set of targets. After successful completion of all targets I call mail

Re: mail task and mapi

2011-04-14 Thread Kolasinski Piotr
Hi - as I remember MAPI means Mail API and is binary (maybe now also .net) interface to sending and receiving mails in Windows.In such way ant needs special task with JNI to do that. I don't think that some kind of this exist :( But ant use Mail framework - and it is possible to authorize by sta

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-28 Thread Michael Ludwig
Michael Ludwig schrieb am 20.01.2011 um 02:30 (+0100): > What is special about JavaMail, JAF (Activation) and JDBC drivers that > they cannot be loaded by any other classloader? Just linking this to a thread I started on Tomcat-User (which did not, however, clarify the issue for me): mail.jar, a

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-20 Thread Patrick Martin
Thank you all for your feedback, it's much clearer now. Patrick On Thu, Jan 20, 2011 at 6:30 AM, Antoine Levy-Lambert wrote: > On 1/19/11 9:46 PM, Michael Ludwig wrote: >> But I still haven't understood the underlying issue. What's so special about >> mail.jar that it needs special treatment? >

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 9:46 PM, Michael Ludwig wrote: > But I still haven't understood the underlying issue. What's so special about > mail.jar that it needs special treatment? It *could* be that instead of just using the classloader of mail.jar ... to look for other classes of mail.jar or activation.jar it wa

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Michael Ludwig
Michael Ludwig schrieb am 19.01.2011 um 13:51 (+0100): > Patrick Martin schrieb am 19.01.2011 um 10:31 (+0100): > > D:\tmp\build.xml:7: taskdef A class needed by class > > org.apache.tools.ant.taskdefs.email.MimeMailer cannot be found: > > javax/mail/MessagingException > > using the classloader A

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Michael Ludwig
Antoine Levy-Lambert schrieb am 19.01.2011 um 18:51 (-0500): > Adding for clarity that the reason why the classloader task helps in > this case is that mail.jar and activation.jar contain factory classes > which cannot be loaded from the loader of the mail task directly if > mail.jar and activation

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
Adding for clarity that the reason why the classloader task helps in this case is that mail.jar and activation.jar contain factory classes which cannot be loaded from the loader of the mail task directly if mail.jar and activation.jar were not in $ANT_HOME/lib or another directory picked up at star

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Peter Reilly
url of: http://enitsys.sourceforge.net/ant-classloadertask/ Peter On Wed, Jan 19, 2011 at 8:16 PM, Antoine Levy-Lambert wrote: > Hello Patrick, > > it is possible to do this using the classloader task of jtools > > classname="org.apache.tools.ant.taskdefs.ClassloaderTask"> > > > > > > >

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Antoine Levy-Lambert
Hello Patrick, it is possible to do this using the classloader task of jtools classname="org.apache.tools.ant.taskdefs.ClassloaderTask"> here is the snippet of my ivy.xml with the dependencies conf="classloadertask->default"> so you do not need to redefine the mail task but pu

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Michael Ludwig
Patrick Martin schrieb am 19.01.2011 um 10:31 (+0100): > > Is it possible to use the task without having activation.jar > and mail.jar in the ant lib folder? Well, ant-javamail.jar depends on classes from mail.jar, so that one is required. Not sure about activation.jar, though. That one will lik

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Patrick Martin
Hello, I just realized that the correct class shuold probably be org.apache.tools.ant.taskdefs.email.EmailTask. But I still end up with an error: java.lang.ClassNotFoundException: javax.activation.DataHandler Thanks, Patrick On Wed, Jan 19, 2011 at 10:31 AM, Patrick Martin wrote: > Hello, > >

Re: mail task does not work under ant 1.7.+

2009-06-11 Thread Michael Ludwig
Laurent Perez schrieb am 10.06.2009 um 12:22:43 (+0200): > > When using encoding=mime, the mail task fails under ant 1.7.0, 1.7.1, > under jdk5 or jdk6. It works under ant 1.6.5. It does not fail under Ant 1.7. Just leave mail/@encoding at the default of "auto", there is no need to change it. It

Re: Mail Task

2008-01-11 Thread raos
Please check for activate.jar, mail.jar files in your ANT_HOME/lib directory. Knuplesch, Jürgen wrote: > > When I run the mail task I often get this Errormessage: > > mailtest: > [mail] Failed to initialise MIME mail: javax/mail/MessagingException > [mail] Sending email: Mailtest >

RE: Mail Task

2008-01-11 Thread Toomey, Kevin H (ATS, IT)
Juergen Your problem appears similar to something I ran across a while back. After doing some digging I did find the cause but the details are escaping me for the moment. I believe you're correct that it's a missing jar file. In any event, since the messages I was sending were plain text, addin

RE: mail task failure

2007-08-17 Thread Erica A Ramsey
t: Re: mail task failure Erica A Ramsey wrote: > hi, i am trying to mail file via ant. I wrote a simple test and it hangs. > here it is. > > > > > value="[EMAIL PROTECTED]"/> > > value="[EMAIL PROTECTED]" /> &g

Re: mail task failure

2007-08-17 Thread Steve Loughran
Erica A Ramsey wrote: hi, i am trying to mail file via ant. I wrote a simple test and it hangs. here it is. Latest binaries for ${application.name} version ${version} always loo

Re: mail task failure

2007-08-16 Thread Qazwart
I bet you're missing a JAR file. I had the same problem with the task. Take a look at this page: and search for the word "mail.jar". You'll notice that the is dependent upon this jar file, and it is not installed by default.

Re: Mail task with Exchange Server

2007-07-04 Thread Steve Loughran
sjscabert wrote: So just to confirm, my mail task would have 25 as the mailport and the name of the Exchange server (as specified in Outlook, for instance)? Thanks again, Shawn 1. 25 is the default port of SMTP; if your exchange server runs SMTP you get it for free 2. if mail.jar and activa

RE: Mail task with Exchange Server

2007-07-03 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: sjscabert [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 9:31 AM > To: user@ant.apache.org > Subject: RE: Mail task with Exchange Server > > > So just to confirm, my mail task would have 25 as the > mailport and the na

RE: Mail task with Exchange Server

2007-07-03 Thread sjscabert
So just to confirm, my mail task would have 25 as the mailport and the name of the Exchange server (as specified in Outlook, for instance)? Thanks again, Shawn James Oltmans wrote: > > Yes it is possible. Set your mailport to 25 and either make sure that > the sending computer knows the alia

RE: Mail task with Exchange Server

2007-07-02 Thread James Oltmans
Yes it is possible. Set your mailport to 25 and either make sure that the sending computer knows the alias of the exchange server or use the local IP for it (i.e. 192.618.xxx.xxx) -Original Message- From: sjscabert [mailto:[EMAIL PROTECTED] Sent: Monday, July 02, 2007 1:00 PM To: user@an

Re: Mail Task: HTML Body content

2007-04-23 Thread Denis Bessmertnyj
ge - From: "Martin Gainty" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, April 23, 2007 7:03 PM Subject: Re: Mail Task: HTML Body content Hello Denis- what happens when you send the mail specifying messageMimeType e.g. addressed. If you have received

Re: Mail Task: HTML Body content

2007-04-23 Thread Martin Gainty
Hello Denis- what happens when you send the mail specifying messageMimeType e.g. - Original Message - From: "Denis Bessmertnyj" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, April 23, 2007 11:54 AM Subject: Mail Task: HTML Body content I need to send e-mail with html junit r

RE: mail task

2007-03-13 Thread Alexander Fischuk
port.send(msg); } catch (MessagingException e) { throw new BuildException("Problem while sending mime mail:", e); } catch (IOException e) { throw new BuildException("Problem while sending mime mail:", e); } } Code snippet END

RE: mail task

2007-03-13 Thread Alexander Fischuk
port.send(msg); } catch (MessagingException e) { throw new BuildException("Problem while sending mime mail:", e); } catch (IOException e) { throw new BuildException("Problem while sending mime mail:", e); } } Code snippet END ---

Re: mail task

2007-03-13 Thread Steve Loughran
Alexander Fischuk wrote: Hi, In my network setup ant email task does not work properly. When I try to send email it gives me an error message something like "550 EHLO command requires valid address..." The origins of the error are in MimeMailer and javamail This class does not take into acco

Re: Mail task failure

2006-07-13 Thread Steve Loughran
eagerbeaver wrote: Thanks for your response. According to the documentation, the only library dependencies the Mail task requires are mail.jar and activation.jar. The latest versions of these are in my $ANT_HOME$/lib. There is nothing to say that library dependencies have changed since Ant v1.6.

RE: Mail task failure

2006-07-13 Thread eagerbeaver
Thanks for your response. According to the documentation, the only library dependencies the Mail task requires are mail.jar and activation.jar. The latest versions of these are in my $ANT_HOME$/lib. There is nothing to say that library dependencies have changed since Ant v1.6.2. I am still at a

RE: Mail task failure

2006-07-12 Thread Anderson, Rob (Global Trade)
Check the library dependencies to make sure all the necessary jars are in $ANT_HOME/lib. It sounds like that is the issue. http://ant.apache.org/manual/install.html#librarydependencies -Rob Anderson > -Original Message- > From: eagerbeaver [mailto:[EMAIL PROTECTED] > Sent: Wednesday, J

RE: mail task getting Unknown SMTP host

2006-04-10 Thread Brian McCallion
Hi Dwayne, Glad to hear the goods news! Thanks for the note. Best Regards, Brian -Original Message- From: Dwayne Walker [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 1:16 PM To: Ant Users List; [EMAIL PROTECTED] Subject: Re: mail task getting Unknown SMTP host Oh, thanks

Re: mail task getting Unknown SMTP host

2006-04-10 Thread Dwayne Walker
Oh, thanks for the suggestions but I feel the idiot. I was passing " 10.41.16.31" as the ip. Notice the leading space. I do thank you for your responce Brian. Dwayne On 4/6/06, Brian McCallion <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > Can you telnet to the host on port 25? If so do you get an

RE: mail task getting Unknown SMTP host

2006-04-06 Thread Brian McCallion
Hi Daniel, Can you telnet to the host on port 25? If so do you get an smtp session with the host? Thanks, Brian Brian McCallion President WebSphere Automation Solutions Bronze Drum Consulting, Inc. 230 Park Avenue New York, NY 10169 T (646) 283-0534 F (646) 201-9596 http://www.bronzedrum.com

RE: Mail task error

2004-11-09 Thread Ivan Ivanov
l requires JAF > > Regards, Gilbert > > > > -Original Message- > From: Ivan Ivanov > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 09, 2004 10:47 AM > To: Ant Users List > Subject: Re: Mail task error > > > Hi, > > accoriding to [

RE: Mail task error

2004-11-09 Thread Rebhan, Gilbert
Users List Subject: Re: Mail task error Hi, accoriding to [1] mail task with mime type requires mail.jar in Ant classpath, i.e. place mail.jar in $ant.home/lib, or $user.home/.ant/lib [1]http://ant.apache.org/manual/install.html#librarydependencies --- "Rebhan, Gilbert" <[EM

Re: Mail task error

2004-11-09 Thread Ivan Ivanov
Hi, accoriding to [1] mail task with mime type requires mail.jar in Ant classpath, i.e. place mail.jar in $ant.home/lib, or $user.home/.ant/lib [1]http://ant.apache.org/manual/install.html#librarydependencies --- "Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote: > > Hi, > > when sending an email v

Re: Mail task: attachments displayed within email body when using Messenger

2003-07-04 Thread Antoine Levy-Lambert
Hi Jean-Luc, do you need to use the "uu" variant ? maybe if you use the mime encoding it works better. In this case you need the mail.jar and activation.jar from Sun. (copy into $ANT_HOME/lib if working with the head revision of ant, otherwise probably $ANT_HOME/lib/optional) Cheers, Antoine -