| Author | 
         | 
         
      
        
         
         kiekar Newbie 
          
 
  Joined: 31 December 2006 Location: Canada
 Online Status: Offline Posts: 7
          | 
        
         
          
           | Posted: 31 December 2006 at 2:50pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello,
 
 A short time ago I installed WebMail Lite for ASP.net. I am using hmailserver as my SMTP and POP mail server. Can I use the MailBee SSL/SMIME specifically TLS with the lite version of WebMail? How do I use the plugin? Do I need to modify the aspx file or js file? and if so, which one.  
 
 Thanks
 
 Karl
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 01 January 2007 at 5:08am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Actually, MailBee WebMail Lite ASP.NET edition is powered by MailBee.NET Objects, not MailBee Objects (which is ActiveX library).
 
 MailBee SSL/SMIME plugin is for MailBee Objects. MailBee.NET Objects, however, already includes basic SSL functionality into the regular license.
 
 Thus, to make WebMail Lite (ASP.NET) connect to TLS enabled server and then switch to secure connection, find ConnectPop3Object method in WebMailPop3 class (functions.cs) and insert:
 
Code: 
   
    
    
      
       
 pop.SslMode = SslStartupMode.UseStartTls;
  | 
       
       | 
    
    | 
 
 
 BEFORE:
 
Code: 
   
    
    
      
       
 pop.Connect(strHostVal, intPortVal, true);
  | 
       
       | 
    
    | 
 
 
 
 If you also want to use TLS for sending messages, then find SendMessage method in WebMailSmtp class (same file), and insert:
 
Code: 
   
    
    
      
       
 smtp.SmtpServers[0].SslMode = Security.SslStartupMode.UseStartTls;
  | 
       
       | 
    
    | 
 
 
 AFTER:
 
Code: 
   
    
    
      
       smtp.SmtpServers.Add(smtpServer, smtpLogin, smtpPassword);
  | 
       
       | 
    
    | 
 
 
 
 Regards,
 Alex
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |