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

Sending Emails in VB6.0 using MAPI Controls..

Status
Not open for further replies.

VCPro

Programmer
Feb 3, 2003
30
0
0
US
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!

 
Thanks Paul.

The article you suggested fixed my problem.


Thanks Again!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top