Send Mail Via Token-The host does not support SSL connections

This forum is for programmers who have questions about the source code.
Post Reply
pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Send Mail Via Token-The host does not support SSL connections

Post by pid_user » Tue Dec 21, 2021 5:55 am

Hello Team,
we are trying to send Token Based email from a separate application which reference OpenDental. and for that we are using
OpenDentBusiness.EmailMessages.SendEmail method. we are facing this error-
The host does not support SSL connections.

While from OpenDental, we are able to send token based mail.
FYI- we have also tried with Enable/Disable Use SSL option.
Please help us to resolve the same.

joes
Posts: 239
Joined: Tue Aug 13, 2019 12:41 pm

Re: Send Mail Via Token-The host does not support SSL connections

Post by joes » Fri Dec 31, 2021 9:53 am

Do you get the same error when UseSSL is set to false for the EmailAddress?
Joe Sullivan
Open Dental Software
http://www.opendental.com

pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Re: Send Mail Via Token-The host does not support SSL connections

Post by pid_user » Thu Jan 06, 2022 2:01 am

Yes, with setting UseSSL to false, still facing the same error.

joes
Posts: 239
Joined: Tue Aug 13, 2019 12:41 pm

Re: Send Mail Via Token-The host does not support SSL connections

Post by joes » Thu Jan 06, 2022 11:23 am

Are you attempting to send these emails with Gmail? Beyond the tokens for the email address, The Open Dental program also has to authenticate with Gmail. If your application is referencing OpenDentBusiness to call the SendEmail method, it would not be able to authenticate as Open Dental. This may be causing the emails to fail.
Joe Sullivan
Open Dental Software
http://www.opendental.com

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Send Mail Via Token-The host does not support SSL connections

Post by jordansparks » Sat Jan 08, 2022 6:28 pm

Notice in line 482 that this method does an insert to the db. That's not allowed. You cannot ever call a method in Open Dental which alters the database (which means most methods). I'm unclear how you are "referencing" Open Dental, but we have been working hard lately to block all such action. Even if you somehow get it to work, it's very likely that we will intentionally throw up obstacles very soon. If you need to send email from your app and you want a record placed into Open Dental, then your only option is to use the API. It doesn't look like we have such a method in the API, but we are happy to add it if you decide you want it. That handles the record getting inserted into the database, but it does not handle the actual sending of email. I would think that would be done from your own app.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply