Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: MAPI Send


Message #1 by "Pj Lightfoot" <peter-johnl@a...> on Thu, 30 May 2002 08:53:00 +0200
I'm trying to send two excel files with a MAPISession Object (mSession) and
a MAPIMessages Object (mMsgs)... the code follows:

  mSession.SignOn
  With mMsgs
    .SessionID = mSession.SessionID
    .MsgIndex = -1
    .Compose
    .RecipAddress = p_sEmailAddress
    .MsgSubject = p_sMessageSubject
    .AttachmentIndex = .AttachmentCount
    .AttachmentPathName = sFilePath & "C.xls"
    .AttachmentIndex = .AttachmentCount
    .AttachmentPathName = sFilePath & "D.xls"

    .Save
    .Send False
  End With
  mSession.SignOff

I get 32002: Unspecified Failure has occurred on both the .Save and .Send
methods... why?

Your help will be appreciated.

Thanks,
Pj

______________________________________________
"The information contained in this communication is confidential and
may be legally privileged.  It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it.  If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful.  Absa is neither liable for the proper, complete
transmission of the information contained in this communication, any
delay in its receipt or that the mail is virus-free."

  Return to Index