Foxpert Software Development & Consulting

Menu

Whitepapers
Downloads
Knowlbits
Guineu

2006-09Sep-27

Opening an e-mail window with GroupWise™

In most cases, you can open an e-mail editing window using

DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
  INTEGER nWinHandle,;
  STRING cOperation,;
  STRING cFileName,;
  STRING cParameters,;
  STRING cDirectory,;
  INTEGER nShowWindow
ShellExecute(0,"open","mailto://"+m.tcMail,"",NULL,1)

Sometimes (or maybe always) GroupWise™ doesn't respond to the "mailto:" syntax despite being the default email client. Fortunately, GroupWise™ supports something that I'd call DDE over COM. You create a COM object that lets you send commands in the same fashion as DDEPOKE() does in VFP with DDE:

LOCAL loGroupwise, lcResult
lcResult = ""
loGroupwise = CREATEOBJECT("GroupWiseCommander")
loGroupwise.Execute("NewMail()",@lcResult)
loGroupwise.Execute( ;
  [TextSetTo("]+m.lcText+[")], ;
  @lcResult ;
)

A list of commands (called GroupWise Tokens) can be found on the Novell website.

Previous KnowlBits

RSS

February 2011 (2)

December 2010 (1)

October 2009 (2)

September 2009 (1)

August 2009 (4)

July 2009 (2)

June 2009 (2)

May 2009 (1)

April 2009 (1)

March 2009 (1)

August 2008 (1)

July 2008 (2)

May 2008 (1)

April 2008 (2)

January 2008 (2)

December 2007 (2)

November 2007 (2)

October 2007 (1)

September 2007 (1)

August 2007 (5)

July 2007 (4)

May 2007 (6)

March 2007 (3)

February 2007 (7)

January 2007 (6)

November 2006 (1)

October 2006 (3)

September 2006 (10)

June 2006 (2)

May 2006 (6)

April 2006 (1)


Impressum Kontakt Contact