• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 361
  • Last Modified:

setting "do not send before" with code

Does anyone have any Outlook VBA code for setting the "do not send before" value for an email object?
0
purplesoup
Asked:
purplesoup
1 Solution
 
David LeeCommented:
Greetings, purplesoup.

Assuming that olkMessage is a MailItem, then this will work

    olkMessage.DeferredDeliveryTime = #12/1/2006 9:00:00 AM#

This would set the message to be delivered at 9:00 AM on December 1st of this year.

Cheers!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now