CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 email on insert event

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
grivers

Posts: 28
Posted: 10/08/2008, 3:51 AM

Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.