/*When sending an email in desktop, the From and Reply To fields populate from the local registry. This works great when the users have their own computers. When users are sharing a common Windows login (and thereby sharing the local registry), they will need to use the Email OnLoad script below. The script grabs the name of the logged in user and their email address from Security to populate the From and Reply To fields.*/ SystemUser sysuser = new SystemUser(Framework.Controller.Credentials.UserName); email.val_Email_From_DisplayName = sysuser.val_Display_Name; if(sysuser.val_Email != string.Empty ) { email.val_Sender = sysuser.val_Email; email.val_Reply_To = sysuser.val_Email; } return string.Empty;