Re: Outlook And Attachments (Win32lib Question)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Eucoder wrote:
> 
> Hi all..
> 
> I have a question regarding Outlook/Outlook Express and attachments.
> I have seen a program in the past that can run Outlook and attach a 
> file automatically without the user having to manually attach the file.
> I have found a lib in the archives that allow you to do this using MAPI,
> but the problem is it does not open that default mail client mail compose
> window, but instead sends the file directly. 
> 
> 
> Anyone have an idea how?

to get a sendnote window to compose do this;
replace the value MAPI_LOGON_UI with MAPI_DIALOG ( = 0x00000008) 
in the MAPISendMail function call ; 

--goodsend  = c_func(MAPISendMail, {session, 0, message, MAPI_LOGON_UI, 0})
goodsend  = c_func(MAPISendMail, {session, 0, message, MAPI_DIALOG, 0})


#define MAPI_LOGON_UI                   0x00000001  // Display logon UI
#define MAPI_NEW_SESSION                0x00000002  // Do not use default.
#define MAPI_DIALOG                     0x00000008  // Display a send note UI
#define MAPI_UNREAD_ONLY                0x00000020  // Only unread messages
#define MAPI_ENVELOPE_ONLY              0x00000040  // Only header information
#define MAPI_PEEK                       0x00000080  // Do not mark as read.
#define MAPI_GUARANTEE_FIFO             0x00000100  // use date order
#define MAPI_BODY_AS_FILE               0x00000200
#define MAPI_AB_NOMODIFY                0x00000400  // Don't allow mods of AB
entries
#define MAPI_SUPPRESS_ATTACH            0x00000800  // header + body, no files
#define MAPI_FORCE_DOWNLOAD             0x00001000  // force download of new
mail during MAPILogon




--"ask about our layaway plan".
--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu