| Author |  | 
      
        | Mok Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          I using try version, how to unwraop a smime message to normal mime.
           | Posted: 03 July 2006 at 11:28pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          The support of certificates and S/MIME messages in MailBee.NET Objects is available in beta only. Please contact us atsupport@afterlogic.com if you interested in this beta version.
           | Posted: 04 July 2006 at 9:39am | IP Logged |   |  
           | 
 |  
 Nevertheless, you can use MailBee Objects in conjunction with MailBee SSL/SMIME plugin in
 your .NET application. The following sample loads the encrypted message from file, decrypts and saves it as .eml file (in VB.NET syntax):
 
 
 
| Code: 
 
    
    | 
      
       | Dim oSmime As New SMIMEClass
 
 ' Specify MailBee license key
 oSmime.LicenseKey = "put your license key here"
 
 ' Load the message from file
 oSmime.Message.ImportFromFile("C:\temp\msg_encrypted.eml")
 
 ' Check if the message is encrypted
 If oSmime.Encrypted Then
 ' Decrypt the message
 oSmime.Decrypt()
 
 ' Save decrypted message
 oSmime.Message.SaveMessage("C:\temp\msg.eml")
 End If
 
 |  |  |  
 Best regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |