Dear Sandy,
if you use an email call object, you can put in the process sheet:
:set &userid# = SYS_USER_NAME
:set &dep# = SYS_USER_DEP
:ADD_ATT RECIPIENT, '&userid#/&dep#'
Then an email will be sent to the user that called the object. Maybe you could use the send_mail script function as well, but I am not sure if you can use the username instead of the email address.
I didn't find a function that gives you the email address of the user. If there isn't any function, there must be a way to select it from the database. But I haven't had a look into that yet. An easy solution to retrieve an email address would be to store the email address of the user in a VARA. You just need to manage the entries in the VARA.
Regards, Nicole
------------------------------
Regards, Nicole
------------------------------
Original Message:
Sent: 09-26-2019 05:02 PM
From: Sandy Crofoot
Subject: mailx help
Hi all you Atomic gurus, I'm in need of some assistance. I wrote a script for my endusers - now I need to mailx the output to the requestor - I think its an Automic prompt('&&requestor'). Can anyone give me the syntax for the mailx statement?
Any assistance will be appreciated,
------------------------------
Sandy Crofoot
Emporia State University
Information Technology
scrofoot@empora.edu
6203415160
------------------------------