Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Box Commands

Status
Not open for further replies.

ADB1

Programmer
Aug 24, 2001
235
GB
I have a macro written in Cognos Script (which is very similiar to VB). The macro automatically sends an e-mail from a program called Impromptu, however, while sending the mail, Outlook gives a security message to which the user has to select yes before the mail is sent.

Is there any way in the macro that we can add a line of code to bypass the security window by passing through a yes command for example? or something similiar?

Any help would be greatly appreciated.

Thanks,

Adam.
 
dear adam,

could you please specify which security message you got ?


regards Astrid
 
Astrid,

The message is as follows:
---------------------------------------------------
A program is automatically trying to send an e-mail on your behalf.
Do you want to allow this?

If this is unexpected it may be a virus and you should select "no".

YES NO HELP
----------------------------------------------------

Thanks,

Adam.
 
dear adam,

the MAPI.Message.send method has a parameter called

showDialog
by default it is set to true indicating to ask the user.

try

mymessage.send showDialog:=False


HTH

regards Astrid
 
Thanks for the help, I couldn't be a pain and ask you how this would be used, ie. the syntax and where it would appear?!?

Sorry to be a pain.

Thanks again,

Adam.
 
dear adam,

I really do not know cognos script at all, so I assumed it was as simular as you said ;-)

in VB you define a MAPI.Message object
dim oMes

set oMes = CreateObject("MAPI.Message")

.
.
.

and then you send it with:
oMes.send showDialog:=false

(this code is not debugged but should work)

HTH
regards Astrid


 
Astrid,

Thanks very much for the help.

Adam.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top