I am trying to send an email using MAPI, which works fine while Outlook 2000
is open, but crashes with error 32002 Unspecified Failure has occurred when
outlook is closed. Is this supposed to happen, or is there some way around
this problem? Here is my code, it crashes on the send statement. If
outlook needs to be open, how can I test that Outlook is open? Or fire it
up?
mpSession.SignOn
With mpMessage
.SessionID = mpSession.SessionID
.Compose
.MsgSubject = fcReportParameters.ReportName & " for " & strDate
.MsgNoteText = fcReportParameters.ReportName & " for " & strDate & "
attached."
'add document as attachment
.AttachmentPathName = strFileName
.Send True
End With
mpSession.SignOff
It actually works fine when Outlook is open, so the problem is not the
attachment itself. In actual fact, Outlook attempts to fire up and gets an
error "OUTLOOK caused an invalid page fault in module MS09.DLL". One of my
testers is using Win XP with Outlook XP, and the emails work fine even when
Outlook is closed.
________________________________________________
JB DESIGN (CAIRNS) PTY LTD
Software Design
PO Box 1744, Cairns QLD 4870, Australia
1st Floor, 192 Mulgrave Road, Cairns
Tel +xx x xxxx xxxx
Fax +xx x xxxx xxxx
www.jbd.com.au
ACN 056 308 153
Disclaimer
This message and any attachments, may contain confidential information
intended only for the addressee. Any unauthorised use of this material is
prohibited. If you receive this message in error, please notify the sender
immediately and delete this message from your computer network.
Opinions expressed in this e-mail are those of the sender and do not
necessarily represent the views of JB Design. JB Design does not accept any
responsibility for the loss or damage that may result from reliance on, or
the use of, any information contained in this e-mail.
Permission is required from the sender to forward this e-mail or attachments
to a third party.