PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Add text to RTF message when forwarding using MAPI

Reply

Add text to RTF message when forwarding using MAPI

 
Thread Tools Rate Thread
Old 28-02-2005, 10:09 AM   #1
=?Utf-8?B?YmFzc21hbg==?=
Guest
 
Posts: n/a
Default Add text to RTF message when forwarding using MAPI


Hi

I'm using MAPI to forward all incoming mail (MAPI.dll). I want to add the
original senders details ( Like Outlook would do it ) to the new forwarded
message. Is this possible? Can you add this extra "From" and "To" text to an
RTF message body? What else should I do?

Thanks
  Reply With Quote
Old 01-03-2005, 08:49 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Add text to RTF message when forwarding using MAPI

Create a hidden RTF control, stream the RTF in, modify the data using the
RTF control API, stream it out.
By MAPI you mean Extended MAPI, not Simple MAPI, right?

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

"bassman" <jacques.lombaard@liberty.com> wrote in message
news:2C910E28-1B9C-4F30-B83B-7403C99D05A0@microsoft.com...
> Hi
>
> I'm using MAPI to forward all incoming mail (MAPI.dll). I want to add the
> original senders details ( Like Outlook would do it ) to the new forwarded
> message. Is this possible? Can you add this extra "From" and "To" text to
> an
> RTF message body? What else should I do?
>
> Thanks



  Reply With Quote
Old 02-03-2005, 05:31 AM   #3
=?Utf-8?B?YmFzc21hbg==?=
Guest
 
Posts: n/a
Default Re: Add text to RTF message when forwarding using MAPI

I've changed the way that I do it by just using the Outlook Object model and
CDO to get the sender's email address. But thanks for the help, I will
remember and use it next time.

"Dmitry Streblechenko" wrote:

> Create a hidden RTF control, stream the RTF in, modify the data using the
> RTF control API, stream it out.
> By MAPI you mean Extended MAPI, not Simple MAPI, right?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "bassman" <jacques.lombaard@liberty.com> wrote in message
> news:2C910E28-1B9C-4F30-B83B-7403C99D05A0@microsoft.com...
> > Hi
> >
> > I'm using MAPI to forward all incoming mail (MAPI.dll). I want to add the
> > original senders details ( Like Outlook would do it ) to the new forwarded
> > message. Is this possible? Can you add this extra "From" and "To" text to
> > an
> > RTF message body? What else should I do?
> >
> > Thanks

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off