I create a mapi message in my Delphi app, and users then simply send the message in their default mapi email client, i.e. the formatted message appears in their mail client and they click "send."
Everything works great when the email client is Thunderbird or Outlook Express, but things are stranger when it's Outlook (2007). The focus goes to Outlook, for example, but a user can't close the Outlook window, sometimes the user can't even use a mouse within the program--the arrow disappears within Outlook. I find myself having to close the app from Task Manager.
From my newbie perspective, the issue is one of controlling forms and focus more than something connected to simple or extended mapi; the latter seems irrelevant in this case.
Does anyone know what's going on here? And how I should change my code to deal with the issue?
This is the code:
MapiMail1 := TMapiMail.Create(self);
try
MapiMail1.Recipients.Add(MainGrid.AllCells[aCol, aRow]);
MapiMail1.Subject := '';
MapiMail1.Body := '';
MapiMail1.EditDialog := True;
MapiMail1.Send;
finally
MapiMail1.Free;
end;