ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Wallace" <pa...@isell.com.au>
Subject RE: Send email
Date Tue, 27 Jul 2004 07:30:16 GMT
 
Thanks for that,
	You have this working? What is the value ${smtp.server} ? Mail
server IP? 

Paul.

Hi,
You could use the <mail> task
My example mail target ...

<!--
=====================================================================
-->
<!-- MAIL
-->
<!-- IMPORTANT NOTE: To run this target, activation.jar and mail.jar
needs to copied into		   -->
<!-- the Ant lib directory
-->
<!--
=====================================================================
-->
  	<target name="mail" depends="init">
		<mail mailhost="${smtp.server}" 
			user="${smtp.user}"
			password="${smtp.password}"
			subject="${webapp.name} rebuild failed -
Automated Nightly build No. ${build.number}" 
			charset="utf-8"
			files = "build.log" 
			tolist = "${smarter.email.list}" >
  			<from name="${webapp.name} - Automated Nightly
build program" 
 
address="firstname.lastname@yourdomain.com" />
  			<message>The ${webapp.name} nightly build
process failed to complete successfully. Please see attached log
file.</message>
  		</mail>
  	</target>


Regards,
Vikram


-----Original Message-----
From: Paul Wallace [mailto:paulw@isell.com.au]
Sent: Tuesday, July 27, 2004 12:49 PM
To: user@ant.apache.org
Subject: Send email


Hi,
    Can Ant send email? If so, might I pointed to a relevant resource. I
didn't get much from the archives, leading me to believe it can't. Happy
to be told otherwise.
 
regards
 
Paul.

---------------------------------------------------------------------
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