c# - MAPI call without blocking application -
my application sending e-mails via mapi call:
[dllimport("mapi32.dll")] static extern int mapisendmail(intptr sess, intptr hwnd, mapimessage message, int flg, int rsv);
and somewhere else:
m_lasterror = mapisendmail(new intptr(0), new intptr(0), msg, how, 0);
this works except 1 problem: outlook window block application.
seems intended behavior not have behave way. ideas?
i tried calling mapi
background thread, seems that's not possible.
that way simple mapi works - use oom instead (application.createitem
/ mailitem.display(false)
).
Comments
Post a Comment