Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / July 2007

Tip: Looking for answers? Try searching our database.

How to add envid,notify and ret parameters to Outlook mail ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lukas - 26 Jul 2007 07:26 GMT
I'm writing an application as plugin to Outlook 2003 using VSTO.
Now I have a big problem. I tried to add envid,notify and ret parameters to
message header (MailItem) programmically but I got stuck.
According to SMTP specification, envid and ret must be added to RCPT
command.

This line should look like this

MAIL FROM:<Alice@Example.ORG> RET=HDRS ENVID=QQ314159

and recipient like

RCPT TO:<Bob@Example.COM> NOTIFY=SUCCESS

The problem is how to add these parameters to message header. I looked into
vsto MailItem and Recipient classes and i didn't find appropriate solution.
Is it possible to do it using REDEMPTION libary, CDO or Extended MAPI ?

Thanks for any ideas
Ken Slovak - [MVP - Outlook] - 26 Jul 2007 16:11 GMT
You can add x-headers using any of the API's you mentioned. You can also do
it using Outlook 2007 code and the PropertyAccessor. There's an example of
adding an x-header on the Redemption web site, that with modifications can
also be used to add x-headers using CDO or ExMAPI.

The headers remain as named MAPI properties in the namespace
{00020386-0000-0000-C000-000000000046}until the item is sent out, then the
transport converts the MAPI named properties into x-headers (the named
properties remain on the item).

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I'm writing an application as plugin to Outlook 2003 using VSTO.
> Now I have a big problem. I tried to add envid,notify and ret parameters
[quoted text clipped - 18 lines]
>
> Thanks for any ideas
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.