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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -