Woohoo I did it, my first fight with C# and reworked mailtask to use System.Net.Mail, added compatibility so it can still accept the old MailFormat and convert it as appropriate, but I made it obsolete and added the "real" new attribute - MediaType.Text which can be plain, html, xml or rtf. Pending is to rewrite the maillistener to use System.Net.Mail too.

2 questions:
1. Is there a repository I can get the current trunk (svn?) or the zip file is the way to go?
2. Will the changes be accepted into nant?

Martin Aliger wrote:
As I (and perhaps other) see it, emailing is pretty minor task for NAnt.
But, of course, feel free to implement better task! Maybe depending on new
.net2.0 System.Net.Mail namespace (which directly implements smtp protocol).

I never used NAn't email task, but I use ccnet's (which is basically the
same) and I never have a problem with installing OE to the server machine.
But, it should be documented as dependancy in nant's documentation. Or
atleast add troubleshoot section as ccnet has. You are not the only one,
having problems, that's sure.


Martin Aliger
 

  
-----Original Message-----
From: Flex [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 28, 2006 12:50 PM
To: Martin Aliger; nant-developers@lists.sourceforge.net
Subject: Re: [nant-dev] MailLogger task failing...

Aww now I'm even more confused. I though mail sending should 
be very v??y simple <task>. In short - whatever CDO is I 
don't have it - missing
cdo*.* in system32 folder. In order to install it, I have to 
either install outlook or ms exchange according to MS site. I 
checked 3 pcs around - 2003 misses it, XP64 misses it too and 
XP32 has it. So it turns out by default nant lacks mail 
support on some (in my case most) systems. NET fault it 
seems. I will move forward to installing some of these to get 
the cdo support but it is not a great solution, can nant be 
made to use something more reliable for email tasks?

Martin Aliger wrote:
    
.net framework (atleast 1.1 for sure) don't send directly 
      
to smtp port 
    
TCP/25. Instead, it uses CDO object, which is some COM 
      
system beast. 
    
And this thing has to be inicialized. You have to do it 
      
just once. You 
    
could uninstall OE then. I dont know, whether Thunderbird 
      
uses/inits CDO.
    
Perhaps there is some way how to accomplish this initialization by 
hand, without OE magic. Try to search for 
      
"System.Web.Mail.SmtpMail". 
    
That is what nant is using.


btw: Confusing? Mailing systems are! Wish MS do some 
      
cleanup it this area.
    
Perhaps WinFX...

Martin Aliger
  
      



  
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&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to