EMLSTMF – Email Address

450 pts.
Tags:
AS/400
CLLE
RPGLE
Hi,

I have used SNDDST seamlessly to send .csv files, collecting the users email address via a DSPDIRE (output to a file in QTEMP).

My question is : I want to use EMLSTMF instead but how can I access the email address from DSPDIRE ?

Many thanks.



Software/Hardware used:
iOS 5.4

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you have TAATOOL installed in your i Series, Then you can retieve mail ID using RTVDIRE in your CL Program.
<pre> DCL &RTNADDR *CHAR LEN(8)
DCL &RTNDSC *CHAR LEN(50)
.
RTVDIRE USERID(xxx) RTNADDR(&RTNADDR) +
RTNDSC(&RTNDSC)

</pre>

You can use EMLSTMF as usual for sending email.

Pradeep.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I don't quite understand. If you've previously been using DSPDIRE to obtain addresses, why can't you continue using DSPDIRE? All the info needed for EMLSTMF is in the output, assuming you use *TYPE2 or *TYPE3. Have you been having a problem? Tom
    125,585 pointsBadges:
    report
  • NeilD
    Pradeep, Sadly, we do not have TAATOOLS on our box. Thanks for your help anyway. Neil
    450 pointsBadges:
    report
  • NeilD
    Tom, DSPDIRE produces the USER and ADDRESS (from qusrsys/qatmsmtpa) which SNDDST is adept at interpreting. However, EMLSTMF can't extract the SMTP address from DIRE. I have however, found an article written by Scott Klement where he has shared the code to a CL called "GETSMTP" which collects and returns the email address of the user/address provided. Many thanks for your help. Neil.
    450 pointsBadges:
    report
  • TomLiotta
    EMLSTMF can’t extract the SMTP address from DIRE. EMLSTMF wouldn't extract it from the file. The parameter is a list parameter, so it requires multiple variables to supply (1) the {*TO, *CC, *BCC} choice, (2) the name of the recipient and (3) the recipient's e-mail address. EMLSTMF is a command intended for SMTP. The {*TO, *CC, *BCC} choice would be supplied by your program. The name might be taken from the DFDESC field. Or it might be First Name (DFFSTN) concatenated with Last Name (DFLSTN). Or you might use Full Name (DFFULN). The e-mail address would be SMTP user ID (DFSUID) concatenated with '@' and then with SMTP Domain (DFSDR). The SNDDST command can use the User ID (DFDEN) and Address (DFDGN) fields and construct an appropriate SMTP address. But SNDDST is intended for SNA, not SMTP. It had a few extensions added to it to allow it to hand some basic e-mails over to SMTP. Using the SNA directory info to populate SMTP info is possible. It just takes doing some of the work necessary to meet actual SMTP requirements. Note that technically the field values should also be converted to the appropriate CCSIDs for SMTP, but you might not actually need to do that depending on your environment. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following