| Author |  | 
      
        | ahartenb Newbie
 
  
 
 Joined: 24 November 2006
 Online Status: Offline
 Posts: 7
 | 
          Hello
           | Posted: 24 November 2006 at 9:00am | IP Logged |   |  
           | 
 |  
 I am currently trying to delete Attachments from an email-message I load from disc (.eml-file). It seems that all steps do succeed. But still if I save the mail to an .eml file after deletion of the Attachments and reload it again, the attachment is back. I delete attachments like this:
 
 email.Attachments.Remove("SOMENAME.PDF")
 
 then I save the mail via
 
 email.SaveMessage("SOMEDRIVE:\SOMEFILEPATH\SOMEFILENAME.EML" )
 
 Once I reload the .EML file all Attachments are back. Sometimes my PlaintextBody is deleted.
 
 Best regards,
 Andreas
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          
           | Posted: 24 November 2006 at 1:16pm | IP Logged |   |  
           | 
 |  
| Quote: 
 
    
    | 
      
       | email.SaveMessage("SOMEDRIVE:\SOMEFILEPATH\SOMEFILENAME.EML" ) |  |  |  Please get the latest version of MailBee.NET.dll to have this fixed.
 
 
 
| Quote: 
 
    
    | 
      
       | Sometimes my PlaintextBody is deleted. |  |  |  We could not reproduce this? Could you please send us a problem message to support at afterlogic.com so we would be able to examine it?
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | ahartenb Newbie
 
  
 
 Joined: 24 November 2006
 Online Status: Offline
 Posts: 7
 | 
          Hello Alex,
           | Posted: 27 November 2006 at 9:24am | IP Logged |   |  
           | 
 |  
 it works
  . Thanks a lot for this quick answer and solution. I was not able to reproduce the problem where my PlaintextBody was deleted with the old .dll-file. If it appears again, I'll mail you the Problem description, some code plus the Mail. 
 Andreas
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | ahartenb Newbie
 
  
 
 Joined: 24 November 2006
 Online Status: Offline
 Posts: 7
 | 
          Hello again,
           | Posted: 23 February 2007 at 11:21am | IP Logged |   |  
           | 
 |  
 I am running into Problems with the License on my customers machine. I get the Message that my License is not valid. Is it possible that this is because i have to use V 3.0.0.17 du to the problems i had with the attachment's. It works fine here on my development machine. I installed the same way as i do with my customers. I did something like this in my code:
 .
 .
 .
 dim inbox as Pop3 = Nothing
 inbox.LicenseKey = 'MN200 .... '
 inbox = new Pop3
 .
 .
 .
 
 Please reply as fast as possible. It's really urgent.
 
 Regards, Andreas
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Looks like it works on your machine because you have the license key set in the registry or machine.config file. The license key itself for 3.0 is the same as for 2.0. As for assigning the license key in the code, you set it incorrectly.
           | Posted: 23 February 2007 at 3:26pm | IP Logged |   |  
           | 
 |  
 LicenseKey is a static property, not an instance property. You should set it for the entire class before creating instances of the class:
 
 Pop3.LicenseKey = "key"
 Dim inbox as Pop3 = new Pop3
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |