UserProperty vs HTML

L

lloyd christopher

It is my understanding that if you set a UserProperty that it may prevent
the message from being sent as html because only rtf supports that.

Not only this, but UserProperty is sent with the email which i really don't
want because it confuses everythign when I am forwarding messages taht have
been processed.


I need to record state on individual messages so I can keep track of whether
or not they have been modified by my program. I'm using UserProperty so
that I can save drafts, exit the program and not have my addin corrupt the
message by trying to change everything twice. Is there any way to do this?
EntryID unfortunately changes so i can't jsut use that as a key for my
Inspector Collection (based on ItemCB).

Lloyd Evetts
SLOW30
 
K

Ken Slovak - [MVP - Outlook]

You should be able to send as HTML but the user property won't be sent
along with the message. I usually use CDO or Redemption to add a MAPI
property instead of using an Outlook UserProperty in cases like this
since it won't be visible to Outlook users in the UI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
L

lloyd christopher

I've been trying that with redemption but I'm having a strange problem where
I can only set properties but not read them, don tknow if you've ever seen
anything like that. GetIDsFromNames, Fields etc always returning 0, even
just cut and pasting the examples. Only properties that I can read right
now are the ones from the normal MailItem like subject, even though I have
it forcing embedded images very successfully with hrsetoneprop..

Lloyd Christopher
SLOW30

Ken Slovak - said:
You should be able to send as HTML but the user property won't be sent
along with the message. I usually use CDO or Redemption to add a MAPI
property instead of using an Outlook UserProperty in cases like this
since it won't be visible to Outlook users in the UI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


lloyd christopher said:
It is my understanding that if you set a UserProperty that it may prevent
the message from being sent as html because only rtf supports that.

Not only this, but UserProperty is sent with the email which i really don't
want because it confuses everythign when I am forwarding messages taht have
been processed.


I need to record state on individual messages so I can keep track of whether
or not they have been modified by my program. I'm using UserProperty so
that I can save drafts, exit the program and not have my addin corrupt the
message by trying to change everything twice. Is there any way to do this?
EntryID unfortunately changes so i can't jsut use that as a key for my
Inspector Collection (based on ItemCB).

Lloyd Evetts
SLOW30
 
K

Ken Slovak - [MVP - Outlook]

You might be running into a latency problem, are you releasing the
item after you add the prop and then instantiating it again? How about
just using the Fields collection of an item and using Add to add a
UDF, does that work for you?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 

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