Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending mails through GroupWise with attachment
Message
From
04/10/2001 18:37:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00542261
Message ID:
00564548
Views:
67
This message has been marked as a message which has helped to the initial question of the thread.
Hi Nadya,

The curious thing is that Nigel's class (where this discussion sort of started) has a parameter (.t./.f.) which can be passed to the mapimail control. This in turn activates the default mail client and depending upon the parameter value shows the client mail program with the new message available for editing. So somehow or another GroupWise must be able to be called with this flag parameter. I can get it to work using Nigel's class and Groupwise - so it is just a matter of finding out how the msmapi control passes the parameter onto the mail client (in our case Groupwise).

Guess we just keep looking.....

Barry.

>Hi Barry,
>
>I've checked GroupWise Object model, but haven't found a method to open GroupWise message for editing yet. Send method doesn't accept parameters and does its work behind the scene.
>
>Anyway, here are lots of Downloadable samples:
>http://developer.novell.com/ndk/doc/samplecode/gwobjapi_sample/index.htm
>
>>Hi Robert,
>>
>>Nadya pointed me to your message and code. Do you have a specific Novell website reference where I can find documentation on the NovellGroupWareSession class? I tried to find something but could not track it down.
>>
>>Specifically I am trying to find something to allow me to "SHOW" the email before it is sent.
>>
>>Thanks for any pointers
>>
>>Barry
>>
>>
>>>Hello Nadya and Sandy,
>>>
>>>Thanks for the code snippet, worked OK but I streamlined it abit. I am using
>>>
>>>=GW('RPierce@Smooth-On.com','SUBJECT HERE','TEXT MESSAGE HERE ','C:\PICT.JPG')
>>>
>>>PROCEDURE GW
>>> LPARAMETERS cSendTo,cSubject,cMessage,cAttachment
>>> oGW=CREATEOBJECT('NovellGroupwareSession')
>>> oMsg=oGW.Login.RootFolder.Messages.Add
>>> oMsg.Subject=cSubject
>>> oMsg.BodyText=cMessage
>>> oMsg.Attachment.Add(cAttachment)
>>> oMsg.Recipients.Add(cSendTo,'NGW','0')
>>> oMsg.Send
>>> RELEASE oGW
>>>
>>>If you look on Novell's site using 'NovellGroupwareSession' as a search you get some relevant stuff with examples with tons of code, boils down to the above and works well for me.
>>>
>>>Thanks Sandy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform