Problem with reply to email from Delphi

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

Problem with reply to email from Delphi
 
Mark Stevens




Posts: 19
Joined: 2014-09-15
Within my Delphi (Seattle) add-in, there's no problem locating a mail item from it's EntryID and creating a reply. However, if I do the same thing in a stand alone Delphi app, using the same code, it doesn't work. I just get a helpful "Could not send the message" exception. It finds the item alright and you can do anything with the item, except do a reply.

Does anyone have any ideas what the issue could be here?


    iname := OutlookApp.GetNamespace('MAPI');
    iname.GetItemFromID(sItem, sStore).QueryInterface(IID__MailItem, imail);
    rmail := imail.Reply; // Exception here
    ...


Thanks
Posted 16 Feb, 2016 05:41:12 Top
Andrei Smolin


Add-in Express team


Posts: 14138
Joined: 2006-05-11
Hello Mark,

Are you able to create a reply to that email in the Outlook UI?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Feb, 2016 08:54:56 Top
Mark Stevens




Posts: 19
Joined: 2014-09-15
Hi Andrei

Thanks for replying.

In the end I deleted all my emails and started with a fresh test set and it all seems ok now?

Regards
Posted 16 Feb, 2016 10:41:39 Top
Andrei Smolin


Add-in Express team


Posts: 14138
Joined: 2006-05-11
Thank you for letting me know.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 17 Feb, 2016 01:29:53 Top