Problem sending MAPI mail from Access to Outlook

C

Craig Buchanan

I'm having a problem trying to send an email from MS Access 2003 to Outlook
2003 using the MAPI code published

If I use BMAPISendMain like this (open the message UI):

Result=BMAPISendMail(Me.Session, m_hWnd, MM, MRs(), MFs(),
MAPI_DIALOG_SEND, 0&)

then I get an error message from Outlook that reads:

The operation failed (the dialog's title is 'Microsoft Office Outlook').
The Result variable equals 2 after failure.

If I use BMAPISendMain like this (no UI):

Result=BMAPISendMail(Me.Session, m_hWnd, MM, MRs(), MFs(), 0, 0&)

then the mail message is created successfully.

Does anyone know what is happening there?

Thanks,

Craig Buchanan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top