Hi,
We've just run into the same problem as Jason had...any chance
his code can be implemented please? Happy to test a nightly :)
cheers
si
> Ok, I just wrote it myself. Could someone please add this to the
> official code? I verified that it compiles with .NET 1.1 AND works. If
> I can integrate it into the main code myself, please let me know.
>
> This first part is already in Log.cs, but the code after that needs
> added in.
> ------------------------------------------------------------------
> // create message to send
> MailMessage mailMessage = new MailMessage();
> mailMessage.From = GetPropertyValue(properties, "from",
> null);
> mailMessage.To = GetPropertyValue(properties, prefix +
> ".to", null);
> mailMessage.Subject = GetPropertyValue(properties,
> prefix + ".subject",
> (success) ? "Build Success" : "Build Failure");
> mailMessage.Body = _buffer.ToString();
> -------------------------------------------------------------------
>
> string
> smtpUsername;
> string
> smtpPassword;
>
> smtpUsername =
> GetPropertyValue(properties, "username", null);
> smtpPassword =
> GetPropertyValue(properties, "password", null);
>
> if(smtpUsername
> != null)
> {
>
> mailMessage.Fields["http://schemas.microsoft.com/cdo/configuration/smtpa
> uthenticate"] = 1;
>
> mailMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendu
> sername"] = smtpUsername;
>
>
> if(smtpPassword == null)
> {
>
> throw new ApplicationException("SMTP username specified without a
> password");
> }
> else
> {
>
> mailMessage.Fields["http://schemas.microsoft.com/cdo/configuration/sendp
> assword"] = smtpPassword;
> }
> }
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users