hI
hOW DO I do to use the MAPI control, What I that put in my form ?
thank you
Printable View
hI
hOW DO I do to use the MAPI control, What I that put in my form ?
thank you
in the componets list you will see the Microsoft Mapi Controls... (i think outlook has to be installed)
With MAPISession1
.LogonUI = True
.UserName = "guest"
.Password = "password"
.SignOn
End With
With MAPIMessages1
.SessionID = MAPISession1.SessionID
.Compose
.RecipDisplayName = "[email protected]"
.RecipAddress = "[email protected]"
.MsgSubject = "Test"
.MsgNoteText = "Did it work?"
.AttachmentPathName = "c:\autoexec.bat"
.AttachmentIndex = .AttachmentIndex + 1
.AttachmentPathName = "c:\config.sys"
.AddressResolveUI = True
.ResolveName
.Send False
End With
MAPISession1.SignOff