| Author | 
         | 
         
      
        
         
         sfwebs Newbie 
          
 
  Joined: 23 March 2017 Location: United Kingdom
 Online Status: Offline Posts: 2
          | 
        
         
          
           | Posted: 23 March 2017 at 8:55am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hey everyone,
 
 I wondered, is it possible to open a message file and read it using MailBee POP3, or does the message have to come over POP3?
 
 I've been trying the below, but not seeming to work:
 
 Set objMsg = CreateObject("MailBee.POP3")
 objMsg.LicenseKey = XXXXXXXXX
 objMsg.Message.ImportFromFile "C:\path\to\email.msg"
 response.write(objMsg.Subject)
 
 Thanks for any pointers,
 Dan
      
             
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 23 March 2017 at 9:13am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi,
 
 Set objMsg = CreateObject("MailBee.Message")
 objMsg.ImportFromFile "C:\path\to\email.msg"
 response.write(objMsg.Subject) 
 
 Be sure, however, that your app is allowed to read from the specified location. ASP can be quite restrictive by default.
 
 Also, be sure that your .msg file contains email in human-readable MIME format (the common extension is .EML). .MSG files are usually MS Office emails in its proprietary binary format.
 
 Regards,
 Alex
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         sfwebs Newbie 
          
 
  Joined: 23 March 2017 Location: United Kingdom
 Online Status: Offline Posts: 2
          | 
        
         
          
           | Posted: 23 March 2017 at 10:29am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thank you so much Alex...no wonder it wasn't working...I was using the wrong tool in the first place!
 Dan
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |