jasperjasper
Programmer
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
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