Replied to user list so that everyone can benefit. In email-ext 2.22, there is a pre-send groovy script which can cancel the sending of the email. You could possibly use this to determine if the file exists and if not, set cancel = true to cancel sending the email.
Thanks, slide On Tue, Jul 3, 2012 at 9:28 AM, kumar vaibhav <vaibhavpang...@gmail.com> wrote: > Hi, > > First, thanks a lot for such a great plugin. > > Second, I do have something to ask of you, the answer of which I could not > find anywhere else. I want to send a mail when a condition holds. > Specifically, I generate a report and place it in one of the workspace > folders. Now I want to send a mail to my teammates with that report > attached. > > Problem - I want to check whether that report exists and then send the mail. > In case it does not exist, no mail will be sent. > > Can I do this with the present plugin? What do you suggest? > > I've searched a lot and then finally turned to the creators of the plugin > itself to find some solution. > > Thanking in anticipation. > -Kumar Vaibhav -- Website: http://earl-of-code.com