A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Add-in schedule delivery



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 10th 09, 09:40 PM posted to microsoft.public.outlook.program_addins
julianoAVARIT
external usenet poster
 
Posts: 1
Default 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

Ads
  #2  
Old January 12th 09, 03:14 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old January 12th 09, 03:35 PM posted to microsoft.public.outlook.program_addins
julianoAVARIT via OfficeKB.com
external usenet poster
 
Posts: 1
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.