I recently extended the source for the Mail task to allow property expansion
in files used to construct the body of the mail message - I think this would
make for a good feature addition to the Mail task.
 
e.g.
<mail
    failonerror="false"
    from="${solution.compile.mailfrom}"
    tolist="${solution.compile.maillist}"
    mailhost="${mailhost}"
    message="See below:"
    subject="Test Message"
   >
    <files>
     <include name="solution.compile.build.failure.emailmessage" />
    </files>
    <attachments>
     <include
name="${solution.compile.solutionrootdir}Solutions\Bin\${solution.compile.so
lutionname}.Build.txt" />
    </attachments>
   </mail>
 
solution.compile.build.failure.emailmessage file contains:
 
This is the email body. The build number is ${ccnetlabel}.
 
 
________________________________________________
Adrian Spear 
..Net Development Consultant 
Royal Bank of Scotland 
 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

Royal Bank of Scotland
www.rbos.com <http://www.rbos.com/>     

 
 
 

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbsmarkets.com
***********************************************************************************
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to