1. Outlook And Attachments (Win32lib Question)

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. 

I would like to perform the same action when you click on a mailto link
on a webpage. Example: When you click on a mailto link on a webpage it
opens your default e-mail client and automatically fill in the 
TO…etc..etc. I would like to do the same with an attachment.

I have tried the following with no avail: 
shellExecute ("open","mailto:Eucoder at Hotmail.com?subject=E-mail
Test&attachment=c:/example.log"

Anyone have an idea how?

new topic     » topic index » view message » categorize

2. Re: Outlook And Attachments (Win32lib Question)

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. 
> 
> I would like to perform the same action when you click on a mailto link
> on a webpage. Example: When you click on a mailto link on a webpage it
> opens your default e-mail client and automatically fill in the 
> TO…etc..etc. I would like to do the same with an attachment.
> 
> I have tried the following with no avail: 
> shellExecute ("open","mailto:Eucoder at Hotmail.com?subject=E-mail
> Test&attachment=c:/example.log"
> 
> Anyone have an idea how?

This link might help ...

  http://www.outlook-tips.net/howto/commandlines.htm
 
-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

3. Re: Outlook And Attachments (Win32lib Question)

Thanks Derek... ill try and see if it works

new topic     » goto parent     » topic index » view message » categorize

4. Re: Outlook And Attachments (Win32lib Question)

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 message » categorize

5. Re: Outlook And Attachments (Win32lib Question)

Michael that is what I was looking for...thanks!

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu