Send mail using TLS

  • Thread starter Thread starter Robin9876
  • Start date Start date
R

Robin9876

For some Access VBA using CDOSys that is currently using SSL to send
SMTP messages. What is required to be able to send messages using TLS?
 
Robin9876 said:
For some Access VBA using CDOSys that is currently using SSL to send
SMTP messages. What is required to be able to send messages using TLS?

Transport Layer Security is a email protocol which is part of the email
subsystem and has nothing to do with Access. Access will use it if it's
setup with your email. It would be better to find your answer on a server
newsgroup.
 
I would have thought that there would be some configuration changes
required in the code as well?
 
Not that I know of. When using CDO, you do need to set a reference to
CDO.dll or the CDO library for Exchange., But other than setting a
reference, just use the same code that you would be using with VB. You can
also try using SimpleMAPI which is even easier:

Declare Function MAPISendDocuments Lib "MAPI32.DLL" (ByVal UIParam&, ByVal
DelimStr$, ByVal FilePaths$, ByVal FileNames$, ByVal Reserved&) As Long

Public Sub SendDocs(ByVal hParent As Long, strFiles As String)
Dim hRes As Long
Dim strDelim As String * 16
Dim strNames As String * 16
Dim lngReserved As Long

strDelim = ";" & vbNullChar
strNames = String$(16, vbNullChar)
lngReserved = 0&
hRes = MAPISendDocuments(hParent, strDelim, strFiles, strNames,
lngReserved)
End Sub

Example usage:
SendDocs Me.Hwnd, "c:\My Documents\file1.zip; c:\file2.zip"
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


Robin9876 said:
I would have thought that there would be some configuration changes
required in the code as well?
 
Back
Top