Solved

outlook warring messages

Posted on 2002-06-10
2
183 Views
Last Modified: 2010-04-08
im trying to make a vbs file automaticly send an email message containing a .lnk file as the attachment. im having problems because of outlooks warrnings. is there a way to turn them off either manualy or programicly? im not making a virus or anything :). im trying to implement a internet fax solution but first the documents need to be reviewed by a fellow employee so im trying to make a choice when you right click a file to have it automaticly email to a default user with a link to the document to be reviewed as the attachment. anyways. when the email is received and the user trys to open the lnk file it ONLY alows them to save it. is there a way to alow them to open it? also the other errors im getting are when i use the vbs to send an email automaticly it says "a program is trying to access outlook address book" and prompts the user to click yes/no. then i click yes then it says "a program is trying to send email automaticly" and again prompts the user to click Yes/no. is there a way to fix all 3 of these problems in outlook 2002?
below is the vbs code im using:

Dim golapp
Dim oNS
Dim objNewMail

Const olMailItem = 0

Set golapp = CreateObject("Outlook.Application")    '
Set oNS = golapp.GetNamespace("MAPI")

Set objNewMail = golapp.CreateItem(olMailItem)
   With objNewMail
      .Recipients.Add "User@domain.com"
      .Recipients.ResolveAll
      .Attachments.Add "c:\test.lnk"
      .Subject = "Email Sent"
      '.display
      .Send
   End With

i have another 3rd party program that creates the link of the file for me also. i just need this errors fixed and i also need a way to implement a command$ to put the file name as the subject in my email, i don't know how to do this in vbs.
0
Comment
Question by:Jambyte
2 Comments
 
LVL 9

Accepted Solution

by:
rjcpjc earned 50 total points
Comment Utility
This message is due to the new security features implemented in Outlook
2002.
You have a couple of options.

If you are in an Exchange environment, you can download and install the
Administrative options package.  This will allow you to configure the
security update.

If you are not, your best option would be to use a third party tool called
Redemption (www.dimastr.com/Redemption).

For more information abuot the security update, see :
http://www.slipstick.com/outlook/esecup.htm
0
 
LVL 44

Expert Comment

by:bruintje
Comment Utility
Hello Jambyte

this question is open for more then 2 months
time to clean up
if not stated otherwise

my recom will be
-PAQ
-points to rjcpjc
-this will be finalized by an EE Moderator
-with no further update (26.10.2002)

PLEASE DO NOT ACCEPT THIS COMMENT AS ANSWER

HAGD:O)Bruintje
posted by ToolzEE v1.0
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now