× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, Mike.  We're using the native SMTP server, and I couldn't find any
API that did the process you describe there.  But you're right, I should be
able to write that program now.

PC2

-----Original Message-----
From: Mike Silvers [mailto:msilvers@HBS-INC.COM]
Sent: July 25, 2002 07:09
To: java400-l@midrange.com
Subject: Re: E-mail addresses


On the AS/400, there is no "email name" attribute of a user profile that
would give you the email address of a particular user.  If you are using the
native AS/400 SMTP server, the SMTP table will contain the email address for
the user profile.  The SMTP table is the file QUSRSYS/QATMSMTPA.  This file
uses the directory entries to link to the user profile.  The directory entry
file is QUSRSYS/QAOKL02A.  In order to get the email address associated with
the user profile, you need to look up the entry in the QAOKL02A file, then
look up then entry in the QATMSMTPA file.  If you are using a different SMTP
server (like the James server or the Communigate product) the location of
the email addresses will probably be different.  You can then easily write
an RPG, Java, or COBOL program to get the email address for the signed in
user.  A spin-off in this concept is to create a separate file with user
profile names and the associated email address.  You could populate this
file using whatever file set (if the native SMTP server is used or another
SMTP server) on a nightly process and use the newly created file to search
for an email address associated with a user name.

In short, there is no attribute of a user profile that contains an email
address.  You can write a program to retrieve this information as needed.

A side note:  during OS upgrades, the layout of these system files may
change.  If you base any programs over these system files, you may need to
recompile them after an OS upgrade.

Mike


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.