Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Defer Delivery of MailItems

0 views
Skip to first unread message

J.C.

unread,
Jun 8, 2001, 3:28:30 PM6/8/01
to
Hi,

Question regarding how to keep mail messages in Outbox (perhaps for a
prespecified period of time) before sending. I hope this will allow the
user to check the mail items one last time before "releasing" them.

I know that I can incorporate this feature in my VBA codes and set the
DeferDeliveryTime property at runtime. I want to find out if there's any
other way of accomplishing the same thing. Here's what I looked at:

1. rules wizard. MSDN and Outlook's Help refers to the wiard as being able
to delay delivery of messages. But I don't see how. It seems to aim at
filtering messages more than anything else.

2. append codes to the Message form. I can then use the Send event to set
the DeferDeliveryTime property. But how do I create a reference to the Mail
object in the code? Is there something like "set olMail = ThisMailItem"?

Any suggestion will be appreciated. Thanks,

JC


J.C.

unread,
Jun 8, 2001, 3:29:14 PM6/8/01
to

Sue Mosher

unread,
Jun 8, 2001, 3:39:09 PM6/8/01
to
See comments below ...

"J.C." <nos...@nospam.com> wrote in message
news:ti29sql...@corp.supernews.com...


> Hi,
>
> Question regarding how to keep mail messages in Outbox (perhaps for a
> prespecified period of time) before sending. I hope this will allow the
> user to check the mail items one last time before "releasing" them.
>
> I know that I can incorporate this feature in my VBA codes and set the
> DeferDeliveryTime property at runtime. I want to find out if there's any
> other way of accomplishing the same thing. Here's what I looked at:
>
> 1. rules wizard. MSDN and Outlook's Help refers to the wiard as being
able
> to delay delivery of messages. But I don't see how. It seems to aim at
> filtering messages more than anything else.

Did you try creating a new rule for outgoing items, not incoming? You can
set deferral from 1 to 120 minutes.

> 2. append codes to the Message form. I can then use the Send event to
set
> the DeferDeliveryTime property. But how do I create a reference to the
Mail
> object in the code? Is there something like "set olMail = ThisMailItem"?

In VBScript code on an Outlook form, the intrinsic Item object refers to the
current item.

J.C.

unread,
Jun 8, 2001, 4:53:50 PM6/8/01
to
Thanks Sue. Love slipstick. I need more help. Please see below. Thanks!


"Sue Mosher" <sue...@slipstick.com> wrote in message
news:#0mmeJF8AHA.2120@tkmsftngp02...


> See comments below ...
>
> "J.C." <nos...@nospam.com> wrote in message
> news:ti29sql...@corp.supernews.com...
> > Hi,
> >
> > Question regarding how to keep mail messages in Outbox (perhaps for a
> > prespecified period of time) before sending. I hope this will allow the
> > user to check the mail items one last time before "releasing" them.
> >
> > I know that I can incorporate this feature in my VBA codes and set the
> > DeferDeliveryTime property at runtime. I want to find out if there's
any
> > other way of accomplishing the same thing. Here's what I looked at:
> >
> > 1. rules wizard. MSDN and Outlook's Help refers to the wiard as being
> able
> > to delay delivery of messages. But I don't see how. It seems to aim at
> > filtering messages more than anything else.
>
> Did you try creating a new rule for outgoing items, not incoming? You can
> set deferral from 1 to 120 minutes.

How do you set the rules for outgoing items? Outlook online help does say
that you can create rules for outgoing messages and I have tried. But
whenever I open up Rules Wizard, it only allows me to choose preset rules
type (e.g., "Apply this rule after I send the message", etc), nothing on
outgoing message or "Apply this rule WHEN I send the message". How can I
delay delivery if the message has already gone out?

>
> > 2. append codes to the Message form. I can then use the Send event to
> set
> > the DeferDeliveryTime property. But how do I create a reference to the
> Mail
> > object in the code? Is there something like "set olMail =
ThisMailItem"?
>
> In VBScript code on an Outlook form, the intrinsic Item object refers to
the
> current item.

Problem I encountered was: How do I save the form so that it will replace
the default Message form? I did use VBS and when I tried to save, the form
went into Draft folder. When I publish the form it went to Personal Forms.
I did have the code (adding say 10 minutes to time now and pass that to the
DeferDeliveryTime property of item) right.

>
>
>


Sue Mosher

unread,
Jun 8, 2001, 5:34:58 PM6/8/01
to
See below ...

"J.C." <nos...@nospam.com> wrote in message

news:ti2fda7...@corp.supernews.com...


> > > 1. rules wizard. MSDN and Outlook's Help refers to the wiard as
being
> > able
> > > to delay delivery of messages. But I don't see how. It seems to aim
at
> > > filtering messages more than anything else.
> >
> > Did you try creating a new rule for outgoing items, not incoming? You
can
> > set deferral from 1 to 120 minutes.
>
> How do you set the rules for outgoing items? Outlook online help does say
> that you can create rules for outgoing messages and I have tried. But
> whenever I open up Rules Wizard, it only allows me to choose preset rules
> type (e.g., "Apply this rule after I send the message", etc), nothing on
> outgoing message or "Apply this rule WHEN I send the message". How can I
> delay delivery if the message has already gone out?

"Apply this rule after I send the message" is what you're looking for. These
rules change the message before delivery.

> Problem I encountered was: How do I save the form so that it will replace
> the default Message form? I did use VBS and when I tried to save, the
form
> went into Draft folder. When I publish the form it went to Personal
Forms.
> I did have the code (adding say 10 minutes to time now and pass that to
the
> DeferDeliveryTime property of item) right.

Save = save item in a folder
Publish = publish the form for reuse

To change the default message form, you can use the forms substitution tool
that Microsoft provides for Outlook 2000. See
http://www.slipstick.com/dev/newdefaultform.htm#sub

J.C.

unread,
Jun 8, 2001, 7:01:49 PM6/8/01
to
This may be very stupid, but I tried and it still doesn't work for me. The
rule I specified is "Apply this rule after I send the message | defer
delivery by 5 minutes". My expectation is the test message will stay in the
Outbox 5 minutes before the actual delivery. But the test messages just
went out without a pause.

Cannot publisher the Message form with VBS to replace the standard one,
either.

I'm not using Office Developer. Is that necessary?


"Sue Mosher" <sue...@slipstick.com> wrote in message

news:etmyRKG8AHA.1880@tkmsftngp05...

Sue Mosher

unread,
Jun 8, 2001, 7:21:25 PM6/8/01
to
If you are connected to Exchange Server, messages are sent upstream to the
server and then held there for the specified amount of time.

What specific problem are you having with publishing the message form?
Office Developer is not necessary.

--

Sue Mosher, Outlook MVP
Author of
Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com

"J.C." <nos...@nospam.com> wrote in message

news:ti2mcfm...@corp.supernews.com...

Siegfried Weber [MVP-Exchange]

unread,
Jun 8, 2001, 10:11:07 PM6/8/01
to
"Sue Mosher" <sue...@slipstick.com> wrote in message...

>
> If you are connected to Exchange Server, messages are sent upstream to the
> server and then held there for the specified amount of time.

FYIO: With Exchange 2000 Server it stays in the Outbox.

--
Siegfried Weber

Microsoft Most Valuable Professional (MVP) - Exchange Server
Co-author of "Professional CDO Programming", Wrox Press 1999

CDOLive - The Premier Resource for Microsoft Messaging and Collaboration
Application Development
http://www.cdolive.com

Please reply to the newsgroups so that others can benefit from the
discussion.
Questions by e-mail are discarded without further notice - filter active.

J.C.

unread,
Jun 11, 2001, 9:20:01 AM6/11/01
to
That may be the problem! This particular client machine has OL2000
installed as CW but with internet services added only and is NOT connected
to Exchange Server. (Rules don't work with Internet Only?)

I tried the rule on another machine connected to Exchange Server and the
rule works as expected.

The difficulty I have with publishing the form is: I want to replace the
default message form with one that has VBS in it. In order for that to
happen, don't I need to publish the new form as "Message" form to replace
the default? Now, the "message" form is in the Standard Forms Library, but
I can only publish to Personal Forms Library, so I cannot publish over the
old "message" form and the email messages are still using the old form sans
VBS.

I must be missing some steps here, I figure.


"Sue Mosher" <sue...@slipstick.com> wrote in message

news:#4Bw#MH8AHA.2068@tkmsftngp03...

J.C.

unread,
Jun 11, 2001, 9:30:02 AM6/11/01
to
You are right. I tested it with another machine connected to Exchange
Server.

But is it possible to make the Rules Wizard works without Exchange Server?
The machine I am working on has OL2000 Corporate Workgroup, with internet
email service added, no Exchange Server.

Thanks.

"Siegfried Weber [MVP-Exchange]" <in...@cdolive.com> wrote in message
news:#wHfdkI8AHA.2016@tkmsftngp03...

Sue Mosher

unread,
Jun 11, 2001, 11:53:06 AM6/11/01
to
Assuming you are using Outlook 2000, you can use the form substitution tool
that Microsoft provides to make the necessary registry change. See
http://www.slipstick.com/dev/newdefaultform.htm#sub. There is no comparable
tool for previous versions.

--
Sue Mosher, Outlook MVP
Author of
Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com

"J.C." <nos...@nospam.com> wrote in message

news:ti9hisi...@corp.supernews.com...

Sue Mosher

unread,
Jun 11, 2001, 11:51:58 AM6/11/01
to
The rule should work regardless of the services installed. Is Internet Email
the only mail service? Assuming it's not set up to send immediately, have
you checked the Options for the message in the Outbox to see if the deferred
delivery time was being applied?

"J.C." <nos...@nospam.com> wrote in message

news:ti9i5bn...@corp.supernews.com...

J.C.

unread,
Jun 11, 2001, 1:22:55 PM6/11/01
to
Very strange. I am puzzled by what's going on.

The rules wizard works. The delivery option was set with the correct
n-minute delay. Separately, I also created a new message and set the
delivery delay option manually. Despite correct delivery setting, the
results for both experiments are the same: the messages went out
immediately without any delay. In fact, when I first tried to check the
outgoing message in the Outbox, I got a message that says the "MAPI spooler
has started" sending the job, or words to that effect.

The rule wizard works perfectly on Exchange.

Sue, this workstation only has internet email service (not IMO though,
'cause it's set up to be CW). What do I need to do? MSDN (KB for that
matter) doesn't have any information on this. Could this be a problem with
the product?

I do not want to let the user goes back to OLEXP, but at the moment, that's
the only solution I can think of.


"Sue Mosher" <sue...@slipstick.com> wrote in message

news:#Mn3V7o8AHA.1992@tkmsftngp02...

0 new messages