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

Start GW 6.0-6.5 with command line or alternative with API 1

Status
Not open for further replies.

shavon

Programmer
Jun 18, 2001
102
CA
Good day everyone:

I am creating an application in Visual Basic and I need to open GW, start a new mail, put the recipient's address in the "to" box, add an attachment and a pre defined message. The user should only have to press SEND. If this is possible wia a command line, please show me how or, please provide an alternative. Thank you.
 
imagine you are better posting on novell's groupwise forum

it's far too programmy for me - someone else might know but gut feeling post on novell's forum and get a developer to answer
 
In your Send button Code, put the following:
'-------Start of Code-----------------------
Dim objGroupwise as object
Dim objGWaccount as object
Dim objGWmessage as object
Dim objGWrecipient as object
'Dim objGWCC as object
'Dim objGWattachment as object
'only use CC and attachment if you need to

Set objGroupwise = CreateObject("NovellGroupWareSession")
Set objGWaccount = objGroupWise.Login()
'If you want to login as a specific user, use the following:
'objGroupwise.Login("username","","password")
'or you can use MultiLogin("username","","password")
'instead. This is if you are logged in already but want
'to send the message from a different account
Set objGWmessage = objGWaccount.MailBox.Messages.Add("GW.MESSAGE.MAIL")

Set objGWrecipient = objGWmessage.Recipients.Add(variable)
'Set objGWCC = objGWmessage.Recipients.Add(CCvar, ,1)
objGWmessage.Subject = subjectVar
objGWmessage.BodyText.PlainText = BodyVar

'Set objGWattachment = objGWmessage.Attachments.Add(attVar)

objGWmessage.Send
'--------End of Code-------------------------

Hopefully this helps. I have done a lot more with GroupWise, so if you have any other questions, let me know.



 
Thank you very much. This is very helpful. Happy New Year.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top