outlook warring messages
Posted on 2002-06-10
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:
Const olMailItem = 0
Set golapp = CreateObject("Outlook.Application") '
Set oNS = golapp.GetNamespace("MAPI")
Set objNewMail = golapp.CreateItem(olMailItem)
.Subject = "Email Sent"
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.