Results 1 to 11 of 11
  1. #1
    MrWhipple
    Guest

    Toolbar button for receipt request? (2000/SR-1)

    I'd like to add a button to the message form's Standard toolbar that turns on the "read receipt requested" feature. This would do the same thing in 1 click as the usual 2-click procedure [Options | Request a read receipt...].

    I've explored the toolbar customizations, but it's not an available option. Is there a macro or something that will do it? Any ideas?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    Something like this:

    Dim myMailItem As MailItem
    Set myMailItem = ActiveInspector.CurrentItem
    myMailItem.ReadReceiptRequested = True

  3. #3
    MrWhipple
    Guest

    Re: Toolbar button for receipt request? (2000/SR-1)

    Thanks for the quick reply, jscher2000!

    I'm sorry to say I'm somewhat of an ingenue when it comes to macros. How exactly would I set this up? Would I create it in VB Editor? Where would I store it? How would I match a button to it?

    Thanks (in advance!)

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    Press Alt-F8 , type a short name for your macro (like ReadRecpt) and click Create. Then input the following code between the Sub and End Sub lines:

    Dim myMailItem As MailItem
    Set myMailItem = ActiveInspector.CurrentItem
    If myMailItem.Sent = True Then
    MsgBox "Cannot change option on sent message."
    Else
    myMailItem.ReadReceiptRequested = True
    End If
    Set myMailItem = Nothing

    (To protect the integrity of your message store, I disabled the option to change a Sent message.)

    Save, then and close the VB Editor. Open a message, choose Tools, Customize..., click the Commands tab, then click Macros in the left pane. Find your new macro in the right pane and drag it to the menu bar or a toolbar. (If you want to place it on a new toolbar, you need to back up a step and create that from the Toolbars tab.) Click close. To change the name or icon, right-click the button and edit away.

    The new button should appear whenever you are editing a new message. (For some reason, I had to close and restart Outlook, but normally I don't.) Does this do it?

  5. #5
    MrWhipple
    Guest

    Re: Toolbar button for receipt request? (2000/SR-1)

    Wow. That's exactly what I needed -- thank you!

    The only enhancement I could think of would be to give the button an "on/off" capability -- if the button is "pushed in" the receipt request is on; if it's "out" the receipt is off. Is such a thing possible?

    (If it's not, don't worry. This will do FINE!)

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    I'm sure it is possible, and I sure don't know how to do it!

  7. #7
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Richmond, Virginia, USA
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    This is great! I have one question, though. When I run this macro from an email message, it prompts me to Enable or Disable the macros. Is there any way to make it not do that without setting my Security to low? I guess I just need to know how to make it come from a trusted source.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    Outlook typically asks once per session, which might be once too many times for you. I do not have the required credentials to sign macros; someone, perhaps Charles Kenyon, posted a message indicating that MS was making it more difficult for individuals to obtain them. It may well be that COM Add-ins are trusted by default, but doing a COM Add-in just for this would be a big effort. Sorry I don't have a more helpful answer.

  9. #9
    Lounger
    Join Date
    Aug 2001
    Location
    Texas, USA
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    You could use self.cert to create a certificate just for your machine and sign the code with it. See this page at slipstick for info on how to do this.

    http://www.slipstick.com/dev/vb.htm

  10. #10
    2 Star Lounger
    Join Date
    Sep 2001
    Location
    Kalgoorlie, Western Australia, Australia
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    This thread may be of some use to you. <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=out&Number=82966&page=& view=&sb=&o=&vc=1#Post82966>Outlook Security</A>

    I have found that Outlook asks about security <font face="Script MT Bold"><big>every time</big></font face=script> <img src=/S/confused.gif border=0 alt=confused width=15 height=20>. Any way I hope you get it sorted out. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  11. #11
    New Lounger
    Join Date
    Mar 2002
    Location
    Wellington, North Island, New Zealand
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Toolbar button for receipt request? (2000/SR-1)

    Yes it is possible to turn on/off.

    In the macro previously supplied, change the line that reads:

    myMailItem.ReadReceiptRequested = True

    to:

    myMailItem.ReadReceiptRequested = Not myMailItem.ReadReceiptRequested

    This will toggle the Read Receipt on/off. You can use the same format to toggle commands generally.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •