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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPIMessage Control

Status
Not open for further replies.

jasperjasper

Programmer
Mar 23, 2004
117
US
How can I get the Compose dialog box to be suppressed in the following VB6 code?? When I comment out the line that calls the Compose method, it still displays that dialog box!! I want the program to run without requiring any user intervention, since the recipient and message text will always be the same. I must be missing something very minor, but can't seem to find what it is. Thanks

MAPISession1.DownLoadMail = False
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.MsgIndex = -1
MAPIMessages1.Compose
MAPIMessages1.MsgNoteText = "joe test email"
MAPIMessages1.RecipAddress = "joe@mycompany.com"
MAPIMessages1.ResolveName
MAPIMessages1.Send True
MAPISession1.SignOff
 
There should be parameter values after "MAPIMessages1.Send True" to supress the display. Like...

MAPIMessages1.Send True, False,,,

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Thanks, that was it.
"MAPIMessages1.Send False" suppresses the dialog box.
 
sorry I couldn't give you the exact syntax, my PC has decided that it does not want to run VStudio today.

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top