Add-in schedule delivery

J

julianoAVARIT

Hello everybody,

I work with c#.net 3.5 with VS2008. I am writing a Add-in for Outlook 2007 as
a client of Exchange server 2003 to schedule delivery messages. So, when my
code run in the senditem event, I put the property mailItem.
DeferredDeliveryTime. The message goes to outbox folder and stay there until
the correct time to send it.
The problem is, when ontime and the outlook sends the message, it keep the
original sent date. It doesnt happen when I do it on the outlook interface,
in the message options. When I do it in the message options, the outlook
changes the sent date to the DeferredDeliveryTime when sends the message.
Does someone knows something about it?
Could it be something with the cached mode or synch?

Thanks!
Juliano
AVAR IT
 
K

Ken Slovak - [MVP - Outlook]

Have you tried setting that property before the item.Send() event fires?
That's what you're doing if the property is set using the user interface.
 
J

julianoAVARIT via OfficeKB.com

Hi Ken,

Thank you very much for your reply.

I have fixed the problem!!! After a lots of works!
I was using the Outlook.MailItem to access the properties, and a could not
access all properties I needed.
Now, i am using Outlook.MailItem.PropertyAccessor.setPorperty and I can
access every properties I need.
I needed to use
PR_CLIENT_SUBMIT_TIME and PR_DEFERRED_DELIVERY_TIME. Now it is fine and
working very well.
Thank you!!!

Juliano
AVAR IT

Have you tried setting that property before the item.Send() event fires?
That's what you're doing if the property is set using the user interface.
Hello everybody,
[quoted text clipped - 17 lines]
Juliano
AVAR IT
 

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