Page 1 of 1

Make SendEmailUnsecure method as public

Posted: Wed Jun 23, 2021 11:24 pm
by pid_user
Would it be possible for OpenDentBusiness.EmailMessages.SendEmailUnsecureWithSig() and SendEmailUnsecure() to be changed from private to public? so that it can be accessible by third party app.
In the latest OpenDental version 21.1 and 21.2 they are marked as private.

private static void SendEmailUnsecureWithSig(EmailMessage emailMessage,EmailAddress emailAddressFrom,X509Certificate2 certPrivate) {
}

and

private static void SendEmailUnsecure(EmailMessage emailMessage,EmailAddress emailAddress,NameValueCollection nameValueCollectionHeaders,bool hasRetried=false,params AlternateView[] arrayAlternateViews) {
}

Re: Make SendEmailUnsecure method as public

Posted: Thu Jun 24, 2021 8:26 am
by dcrider
OpenDental won't make that change. You have to use reflection to get the method you want. It's a pain and not a very elegant solution, but OpenDental doesn't want to budge on that.