Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Add-in schedule delivery (http://www.outlookbanter.com/add-ins-outlook/84352-add-schedule-delivery.html)

julianoAVARIT January 10th 09 09:40 PM

Add-in schedule delivery
 
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


Ken Slovak - [MVP - Outlook] January 12th 09 03:14 PM

Add-in schedule delivery
 
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.

--
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


"julianoAVARIT" u48757@uwe wrote in message news:8ffe635cc5753@uwe...
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



julianoAVARIT via OfficeKB.com January 12th 09 03:35 PM

Add-in schedule delivery
 
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


Ken Slovak - [MVP - Outlook] wrote:
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


--
Message posted via http://www.officekb.com



All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com