![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delay delivery | catermann | Outlook - General Queries | 6 | November 15th 08 06:36 PM |
Delayed delivery | Keith H | Outlook - General Queries | 6 | January 25th 08 07:58 PM |
Delivery Receipt | [email protected] | Outlook - General Queries | 1 | November 17th 06 04:37 PM |
no delivery notification | thevine | Outlook and VBA | 0 | May 21st 06 05:38 AM |
MAPI - Correlate sent mail with delivery and non-delivery receipts | Sankar | Outlook - Using Forms | 0 | May 18th 06 01:29 PM |