ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: [PATCH] SendMail task (was: [SUBMIT] SendMail task)
Date Wed, 30 Aug 2000 14:15:47 GMT
Glenn,

I've committed that, thanks. I made three changes

Added apache copyright
Changed name to SendEmail to avoid confusion with Unix sendmail
Added an ouput log message just before email is sent

Conor


> -----Original Message-----
> From: Twiggs, Glenn [mailto:Glenn_Twiggs@bmc.com]
> Sent: Tuesday, 29 August 2000 9:24
> To: 'ant-dev@jakarta.apache.org'
> Subject: [PATCH] SendMail task (was: [SUBMIT] SendMail task)
>
>
> Oops! I think I was supposed to preface the subject of this email with
> [PATCH].
>
> Also, going through my local list archive, I noticed an "Email" task was
> submitted not too long ago, but that it was not checked in. The
> "Email" task
> relies on the "javax.mail" package for it's implementation. My "SendMail"
> task relies on the "com.apache.tools.mail.MailMessage" class
> already a part
> of the ant distribution. I think the "SendMail" task is easier to use for
> this reason, but I will deferr to use whichever task gets checked in.
>
> Glenn.
>
>
> -----Original Message-----
> From: Twiggs, Glenn [mailto:Glenn_Twiggs@bmc.com]
> Sent: Monday, August 28, 2000 4:23 PM
> To: 'ant-dev@jakarta.apache.org'
> Subject: [SUBMIT] SendMail task
>
>
> Attached is code for a SendMail task and a diff for defaults.properties. I
> hope this task can be useful to others - I've gotten very attached to it.
> Here is an example usage:
>
> 	<target name="finish" unless="${build.failed}">
> 		<sendmail
> 			from="build@mycompany.com"
> 			toList="build-list@mycompany.com,
> dist-list@mycompany.com"
> 			subject="Build ${build.id} : OK"
> 			files="${changes.txt}, ${build.log}" />
> 	</target>
>
> There are a few cleanup items that I would like to get to:
>
> * replace toList attribute with "to" subelements.
> * replace files attribute with "file" subelements, and send these files as
> attachments. Currently, the text from the file is written in the
> body of the
> mail message.
>
> Thanks!
>
> Glenn.
>
>
>


Mime
View raw message