Jason, I've finally found time to integrate this into NAnt (in a slightly modified form).
Check out this page after I've uploaded the next nightly build: http://nant.sourceforge.net/nightly/latest/help/fundamentals/listeners.html Thanks for your contribution! Gert > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Young, Jason (GE Indust, GE Fanuc) > Sent: maandag 13 maart 2006 22:22 > To: Young, Jason (GE Indust, GE Fanuc); > nant-users@lists.sourceforge.net > Subject: RE: [NAnt-users] MailLogger credentials > > 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/configura > tion/smtpa > uthenticate"] = 1; > > mailMessage.Fields["http://schemas.microsoft.com/cdo/configura > tion/sendu > sername"] = smtpUsername; > > > if(smtpPassword == null) > { > > throw new ApplicationException("SMTP username specified without a > password"); > } > else > { > > mailMessage.Fields["http://schemas.microsoft.com/cdo/configura > tion/sendp > assword"] = smtpPassword; > } > } > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Young, > Jason (GE Indust, GE Fanuc) > Sent: Thursday, March 09, 2006 2:31 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] MailLogger credentials > > Is there any way to use the MailLogger to send an email with > credentials/authentication? I have a build script that runs on a few > different machines, and I want it to be able to send using a remote > email server, but it requires authentication. > > Surely someone else has had to do the same thing. Any suggestions? > > Thank you! > Jason > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. > Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users