I am using MAPISession1 and MAPIMessages1 controls
in vb6.0 to send emails.
I am getting a 'Run-Time error: 32002' on the .send line
Error Desc: Unspecified failure has occured"
The following is the code I am using:
MAPISession1.LogonUI = True
MAPISession1.SignOn
DoEvents
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "user@company.com"
MAPIMessages1.AddressResolveUI = False
MAPIMessages1.ResolveName
MAPIMessages1.AttachmentPathName = "c:/my path/myfile.txt"
MAPIMessages1.Send False
MAPISession1.SignOff
Would appreciate any help in sorting this out.
Thanks!
in vb6.0 to send emails.
I am getting a 'Run-Time error: 32002' on the .send line
Error Desc: Unspecified failure has occured"
The following is the code I am using:
MAPISession1.LogonUI = True
MAPISession1.SignOn
DoEvents
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "user@company.com"
MAPIMessages1.AddressResolveUI = False
MAPIMessages1.ResolveName
MAPIMessages1.AttachmentPathName = "c:/my path/myfile.txt"
MAPIMessages1.Send False
MAPISession1.SignOff
Would appreciate any help in sorting this out.
Thanks!