authorization problem into outlook

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

authorization problem into outlook
 
Giancarlo




Posts: 67
Joined: 2016-08-17
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




Posts: 67
Joined: 2016-08-17
How can I fix the problem?
Posted 05 Sep, 2016 04:58:59 Top
Andrei Smolin


Add-in Express team


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

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

Regards from Belarus (GMT+3),

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


Add-in Express team


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

Regards from Belarus (GMT+3),

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




Posts: 67
Joined: 2016-08-17
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: 14115
Joined: 2006-05-11
Do you open the item - the one which you save - from a .MSG? Or from an attachment?

Regards from Belarus (GMT+3),

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




Posts: 67
Joined: 2016-08-17
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: 14115
Joined: 2006-05-11
Thank you for letting us know.

Regards from Belarus (GMT+3),

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