Is there a command that can be incorporated into an action button that will launch the user's default mail program (Outlook), compose a new message, fill in a pre-determined destination address, subject line, and body pulling data elements from the EMR?
I know the {RunShellOpen()} command opens a web browser... is there one for e-mail?
Thanks,
Sam
Sam did you ever get an answer for this?
RunShellOpen('outlook.exe','/c ipm.note /m @test.com" rel="nofollow" target="_blank">test@test.com&subject=test&body=message%20here','C:Program Files (x86)Microsoft OfficeOffice14')
Note that you have to use %20 in place of spaces in the subject and body. Here's an untested example:
local arg2
arg2="/c ipm.note /m "
arg2=arg2+DOCUMENT.EMAIL_TO
arg2=arg2+"&subject="
arg2=arg2+replacestr(DOCUMENT.EMAIL_SUBJECT," ","%20")
arg2=arg2+"&body="
arg2=arg2+replacestr(DOCUMENT.EMAIL_BODY," ","%20")
RunShellOpen("outlook.exe",arg2,"C:Program Files (x86)Microsoft OfficeOffice14")
i haven't messed with this in several years but I remember that it worked well and would spawn the default email program (not specific for outlook) for the user who was logged in:
local rtn_result=RUNSHELLOPEN("mailto:" + recip + "?subject= " + subject + "&Body=" + e_string,"","")
rtn_result I think was null if it failed to do its thing
recip is the email address of the recipient
subject is the sublect line
e_string is the body
For some reason the body had to be less than 2000 characters; I don't remember why. It did work however the limitation was that you had to be at your own computer logged in as yourself.
Thank you!