A slight simplification that will cut the size of the INI file is to use an EMAIL section and one or more Distribution List sections, like this:
 Code:
[DIST LISTS]
OBGYN=doc1,doc3,doc11
TRAMUA=doc7,doc4,doc15

[EMAIL]
Doc1=Tuna.Turner@motown.com
Doc2=Francine.flounder@ocean.org
Doc3=GeoGrouper@ocean.org
In this way, you could extract the list of users from a specific group, enumerate them from a single section of email addresses. Having multiple sections for the doctors would be efficient only if you had multiple data types for each one (name, department, email, location, etc..)

Not much of a difference in the code, so I won't repeat that.. just changes to the ReadProfileString function args.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D