Novell is now a part of Micro Focus

Can anyone tell me where I can find...

Articles and Tips: qna

01 Jun 2002


Q.

Can anyone tell me where I can find out how to send e-mail using Visual Basic and Object API? I'm brand new to this type of programming. What I am trying to do is find an e-mail address for a person and then send that person an e-mail.

I also have a question about finding the correct match for a name. I have this code so far:

Set GWFoundAddresses = GWABEntries.Find
		("(Name contains """ & sFirstName &
		""")")

but what I'm trying to do is find the entry with both the FirstName and the LastName to match.

A.

For starters take a look at the numerous (simple and complex) samples at http://developer.novell.com/support/sample.htm.

The filter syntax is shown in: http://developer.novell.com/ndk/doc/gwobjapi/gwobjenu/data/ht78bg9o.html.

Use filters like:

( MATCHES "John") ( CONTAINS "Smi*") ( MATCHES "John Smith") OR ( MATCHES "Smith, John")

Note: In large address collections, CONTAINS will be much slower than MATCHES. Use Chr(34) to represent the " in building filter expressions, such as: sFlt = "( MATCHES " + Chr(34) + sName + Chr(34) + ")"

This should help you.

(Taken from the GroupWise Tokens DeveloperNet Newsgroup.)

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates