authorization problem into outlook

Add-in Express™ Support Service
That's what is more important than anything else

authorization problem into outlook
 
Giancarlo


Guest


I have developed a little example that save msg file into temp directory


  FMail: TMailItem;
  TempDir := TPath.GetTempPath();
  filename := TempDir + 'm.msg';
  FMail.SaveAs(filename);


when i put it into a production outlook i got this error
add-in has rised an exception

Impossibile salvare l'allegato
Autorizzazione non idonea per eseguire l'operazione

Unable to save attachment
unsuitable permission to perform the operation
Posted 02 Sep, 2016 09:49:05 Top
Giancarlo


Guest


How can I fix the problem?
Posted 05 Sep, 2016 04:58:59 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Giancarlo,

Use try/except when getting the path. Does it work if you start Outlook from the Start Menu?


Andrei Smolin
Add-in Express Team Leader
Posted 05 Sep, 2016 05:31:43 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Do you open the item - the one which you save - from a .MSG? Or from an attachment?


Andrei Smolin
Add-in Express Team Leader
Posted 05 Sep, 2016 05:35:41 Top
Giancarlo


Guest


The problem is into last line

FMail.SaveAs(filename);


access denied also to a temporary directory
Posted 05 Sep, 2016 05:37:03 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Do you open the item - the one which you save - from a .MSG? Or from an attachment?


Andrei Smolin
Add-in Express Team Leader
Posted 05 Sep, 2016 05:40:51 Top
Giancarlo


Guest


Solved.
I made a programming error
I do not save the file in the temporary directory


Thank You
Posted 05 Sep, 2016 09:59:40 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Thank you for letting us know.


Andrei Smolin
Add-in Express Team Leader
Posted 05 Sep, 2016 10:28:40 Top