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?