Using ATTACH_BY_VALUE with outlook redemption?

T

tomer

Hi,

I am looking for sample code which show how to send a memory buffer as an
attachment.
I know it can be done using Extended mapi.

Thanks in advance
 
D

Dmitry Streblechenko

Since Redemption mimicks OOM and CDO, you cannot attach a file without
actually having a real file. You can however attach a dummy file then
overwrite its data using Attachment.AsArray in Redemption. AsArray expects a
variant array of bytes.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
T

tomer

Thanks Dmitry Is is very helpfull,i will use it.

BTW,Is it possible to get the 'real' Mapi interface
from a SafeMail item?
 
D

Dmitry Streblechenko

Yes, MailItem.MAPIOBJECT property returns the IMessage Extended MAPI
interface, unfortunately VB cannot use it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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