I tried to create a patient by registering in patient portal. However, I am getting an error message stating an error message showing 'Email Error: Invalid address: (From): root@localhosy
Can anyone help me how to setup email stmp in openemr?
The way that error looks, are you trying to setup your env with sendmail or smtp?
SMTP is a bit easier unless you know your way around a linux box.
My recommendation: create an account with sendgrid, authenticate a sender with them (they can walk you through that process), then enter your sendgrid smtp credentials at Globals - Notifications.
I’d switch away from port 25 which is unsecured. Use port 587 and in the smtp security protocol, pick TSL
Did you go through the sendgrid email integration guided setup? Hit Email API / Integration Guide. Choose smtp relay. Go through that interface - update the password in openemr (using the sendgrid api key) if needed - and then test creating a new patient in the portal. You should see within sendgrid a successful test.
If all that is failing, tell me more about your infrastructure. Where is this hosted? What platform? What if anything have you done at a firewall level to open.close ports? etc. Note: some consumer/home network connections have port 25 closed (really insecure aka spam) so that is another reason to get off port 25 above.
What are the values just above smtp settings?
I believe with sendgrid you need to use the same domain you have validated with them and looks like your email is still @localhost.
Looking for values for:
Patient Reminder Sender Name
I entered the value for patient reminder sender name, patient reminder sender email and notification email address but I am getting a different error now.
I went back and register as new test patient. It is working this time. I think I had to wait for DNS to propagate which it took some time. Attached is the snapshot
However, after registering as new test patient, it mentioned credential had been sent to my email. I checked on my email inbox and junk mail as well but could not find where it had been sent to.
You can repeat the notification easily by going into the Patients screen, find your created patient then click Create Portal Credentials at the top. That way you can generate emails w just a click. Try again to send and see if it is received.
Does sendgrid show the email is passing through? Check the sendgrid logs and mail history. What does the openemr logs say when you click create portal credentials?
In my own experience, hotmail has a very high reject rate via sendgrid unless you are paying for a dedicated IP address. This only started happening the last 18 months as I always had great results with them previously. I was losing 30-50% of emails that would send out to my clients if they had a hotmail address. I tried Sendgrid’s dedicated ip option and was still losing 5-10% to hotmail addresses. I had to switch to mailgun in order to get better delivery rates.