I am looking for an expression that will generate an email directly from an update in the EHR. The patient registration page has a button that will start an email to the patient's email address. I am looking for something similar directly from an update. It would also be great if there were a way to automatically populate the subject line and the email text. There is a MEL_SEND_FLAG function that does that internally, where you can have all of that plus assign a priority to it.
Has anyone had any luck with something like that?
Thank you.
Bill James
Round Rock, TX
In two parts:
First to execute the MEL command for RUNSHELLOPEN which will allow you to execute PC DOS commands. Search around this forum, and you will find some help with that.
Next, and perhaps the most intriguing, will be the create of a DOS script to execute the command line request to send an email.
Now, with that first part you will need to work on the argStr that is passed so that your DOS command will know who/what to email.
Anyone else with thoughts on this?
I thought runshellopen might be a way to accomplish this. As for creating a dos script, great call. I'll talk to my IT guys to see if this is doable.
Thanks!
Bill James
I have vbscripts that can send an e-mail you could run from a DOS prompt if your IT group needs something like that. Another suggestion is to look at a VERY old command line tool called blat. I used it years ago and it works great and I think our Oklahoma City campus still uses it in their IT department to send e-mails from batch files they run.
Hi David,
Can you send me that vb script? We have tried a couple of things but have been unsuccessful so far.
Thanks!
Yes, BLAT is an option.
One suggestion I would make is to work with your IT folks to see if they can command line (or VB Script) with current system configurations. For security reasons, certain ports or channels may be blocked to keep spam or other programs from trying to send emails.
By the way, Microsoft has a note on that part of your project.
Here are the links to the 14 year old articles that I got the code from
Using Files To Send Emails With Iis Part 1 Of 2
Bill,
Do you have kryptiq secure messaging? If so you can just always pull in the SM Basic form and send from that.
We don't. We are in the process of getting on board with Medfusion. Eventually we will have that ability once we are up and running with that portal, but I am trying to come up with something that creates the email within an update. One click to generate and send if possible.
We've been through this in a previous thread:
https://centricityusers.com/?pa.....to-person/
Basically you can call use RunShellOpen with commandline parameters to call outlook.exe directly. You can skip any need for batch (.BAT) files.
If you're communicating with patients you may want to consider doing it through a patient portal solution.
justinbelcher said:
We've been through this in a previous thread:
https://centricityusers.com/?pa.....to-person/
Basically you can call use RunShellOpen with commandline parameters to call outlook.exe directly. You can skip any need for batch (.BAT) files.
If you're communicating with patients you may want to consider doing it through a patient portal solution.
That assumes you install Outlook/Office. We don't install Office on our Citrix application servers so calling Outlook wouldn't work. Always nice to have multiple ways to accomplish the same thing.
That helped tremendously. The only thing lacking now is the ability to do a carriage return. I've tried \r\n, /r/n, /par, and <br> without results. /r/n gives me an extra space, while the others have the exact test in there (<br> for example).
Any suggestions?
David - true! Good point. I wish the search function in this forum was a little better performing. I had trouble finding that old post when I knew it was existed.
billjames - Use
for newlines. To clarify - those are zeros.
Bill, can you post your code? Also, have you tried HRET?
Here is the code. Do a RUNPROCESS for the action button, and enter the following:
{
RUNSHELLOPEN("mailto:" + PATIENT.EMAIL + "?subject= " + "insert the subject here" + "&Body=" + "insert the test of the email here", "","")
}
I tried HRET and /HRET/ without any luck. I think that there is something similar to /r/n that will make a carriage return happen, as that code put an additional space in the body of the text.
We are not on our patient portal yet, but do have the option to encrypt the email by putting "[encrypt]" in the subject header.
If anyone has another thought on a carriage return, I am all ears.