Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Tacoma, Washington, USA
    Posts
    431
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Sending E-Mail From Word and Outlook Security

    We recently purchased new W2KPro machines and O2K for our office. We use several workgroup templates which were upgraded from O97 to O2K. The templates have an Autotext macros written with VBS.

    One of those templates (the one most used and of course most valued) is for completing the opening-new-file paperwork. At the end of the Autotext macro it prompts for whether or not you want to send a copy of the last page to the billing clerk. If you click Yes the macros makes a copy of the last page, pastes it into an e-mail message and sends it through Outlook.

    Here's the problem: We installed the Outlook E-Mail Security Update on those machines. Now after you click Yes a window pops up, behind Word where the user can't see it, which says, "A program is trying to automatically send e-mail on your behalf." Because the user can't see this popup window they don't know to respond to it. To them it looks like Word has frozen up. Is it possible to send it some other way to avoid this popup window? Or to put code in the macro to accept the message and make it go away?
    Daisy

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sending E-Mail From Word and Outlook Security

    If you don't want the high security that prohibits scripts from running Outlook send commands you can either re-write the code in VBA or lower your security settings in Outlook. Look at your IE security settings, Scripting section. Are any of the settings disabled? Enable them and try your script again. Of course, you will have opened the client to a security risk (that of sending worm code should the client get infected). Personally I'd try VBA.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    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: Sending E-Mail From Word and Outlook Security

    I wrote a procedure to find an open window in this post - <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=vb&Number=18202>http://www.wopr.com/cgi-bin/w3t/showthread...vb&Number=18202</A>. The earlier version probably needs to be tweaked in your case because it tried to ignore application dialogs in favor of main application windows:

    ...
    If GetParent(lnghWnd) = 0 Then 'this is not a child window
    ...

    In your case, you probably need to check all of the windows to find the dialog, so get rid of the above test and run the code inside the If...End If for all windows. Then you could bring the dialog to the front and have the user click it, or use SendKeys to dismiss it.

    Hope this helps.

Posting Permissions

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