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

Groupwise Object Problems

Status
Not open for further replies.

mindlessclone2003

Technical User
Feb 13, 2003
12
US
Does anyone know why I'm getting the following error in my script: "Run-time error '-2147417848 (80010108)': Method '~' of object '~' failed"? I can run all of my code successfully from within VB, but when I compile it and try to run it standalone it gives me this message. I'm running this script on the same machine for which it was developed, and even attempted to install a new version of MDAC as was suggested in other postings elsewhere. Any help???

Code:

Dim gwMessage As GroupwareTypeLibrary.Message
Dim gWAccount As GroupwareTypeLibrary.Account
Dim GWApp As GroupwareTypeLibrary.Application
Set GWApp = CreateObject("NovellGroupWareSession")
Set gWAccount = GWApp.Login("user", vpassword:="password")
Set gwMessage = gWAccount.MailBox.Messages.Add
gwMessage.BodyText = "Testing..."
gwMessage.Subject = "Test Email..."
gwMessage.Recipients.AddByDisplayName "John Doe"
gwMessage.Send
Set GWApp = Nothing
Set gWAccount = Nothing

I seem to have problems with the following line:

Set gWAccount = GWApp.Login("user", vpassword:="password")
 
I'm not sure what the solution is, but I found some code in a different Forum that got me past the prob. Try:

Set gWAccount = GWApp.Login("user", "password")

I found that it ignors the "password", and if GW is not already open, prompts me to enter my PW.

My problem is in trying to add a recipient as a BC. Do you know how?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top