Using ATTACH_BY_VALUE with outlook redemption?

  • Thread starter Thread starter tomer
  • Start date Start date
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
 
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
 
Thanks Dmitry Is is very helpfull,i will use it.

BTW,Is it possible to get the 'real' Mapi interface
from a SafeMail item?
 
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
 
Back
Top