Make SendEmailUnsecure method as public

For users or potential users.
Post Reply
pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Make SendEmailUnsecure method as public

Post by pid_user » Wed Jun 23, 2021 11:24 pm

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) {
}

User avatar
dcrider
Posts: 67
Joined: Sun Sep 29, 2019 11:03 am
Contact:

Re: Make SendEmailUnsecure method as public

Post by dcrider » Thu Jun 24, 2021 8:26 am

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.

Post Reply