grivers
Posts: 28
|
Posted: 10/06/2008, 3:11 AM |
|
Hi,
I want to be able to send an email with the logged in user as part of the text body. At the moment all my logged in user fields are numeric and I can not get the name in the place of the numeric field.
The action_by is where I want the user name to appear but this is current shown as a number.
.From = "helpdesk"
.To = "myemail@myemailaddress.com"
.Subject = actions.action_summary.Text
.TextBody = actions.action_by.Text & " has requested access to the Traffic Scotland system to investigate enquiry id "
.Send
|
|
|
Oper
Posts: 1195
|
Posted: 10/06/2008, 7:29 AM |
|
ccgetuserlogin() <--- Login
ccgetuserid() <--- UserID
or get the email
Emailuser=ccdlookup("userTable","EmailUser","Userid=" & ccgetuserid(),DBConnection1)
of couser name of the field and table may be changed for your names.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
|
|
grivers
Posts: 28
|
Posted: 10/08/2008, 3:51 AM |
|
Thanks.
|
|
|
|