TLS and Cdo?

ahmed_optom

Registered User.
Local time
Today, 02:02
Joined
Oct 27, 2016
Messages
93
I hope everyone is safe and well.

I currently use cdo to send emails within my front end. Works well, but some smtp servers / accounts require a tls secured connection

I have experimented with

config.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendtls").Value = True

However, it seems to make no difference.

is there a way to send emails within access that can connect with TLS?

thanks
 
does SendObject work?

DoCmd.SendObject acSendQuery, "qsQuery", acFormatXLS, "name@aol.com", , , "Subject", "message"
 
Hi Ranman,

the problem with SendObject is that it sends with a 3rd party email program like outlook. I was hoping to not to rely on such a situation.
 
just for clarity, this is the error i get :
rte tls.jpg
 
thank you Gasman,

I have already implemented the suggestions in that article, however, as he suggests the TLS aspect of the CDO appears more experimental than working.

Also Isladogs,

When I used your email form, I did not get any errors. It did not send the email, I clicked send, and nothing happened. I had a look at your code, and I have implemented the same set up already.

I fear that TLS is just not working in the Cdo library.
 
I seem to recall it might work if you use the UseSSL config item instead - but I can't find any reference right now.
 
Yes it does work with TLS. I have used it successfully many times.
You may have noticed this section of code as part of the SendEmailCDO

Code:
'code for STARTTLS
If txtPort = 587 Then
    .Item("http://schemas.microsoft.com/cdo/configuration/sendtls").Value = True
End If

Did you include that?
Have you looked in the Help file that comes with the app? It explains many common errors.
For example try altering the SMTP Authenticate and/or SendUsing and/or UseSSL settings
 

Users who are viewing this thread

Back
Top Bottom