jacquet philippe wrote:I have an application sending mail with a link with Oulook 2000 and it worked fine .
My custommer install outlook 2003 and i receive a MAPI.dll error
What can i do ??
Try something similar to MSMAPI . Maybe it helps ?
PROCEDURE Mail()
LOCAL oSession, oMessage
TRY
oSession := CreateObject( "MSMAPI.MAPISession" )
oSession:SignOn()
CATCH
Alert( "SimpleMapi not avilable." )
BREAK
END
TRY
oMessage := CreateObject( "MSMAPI.MAPIMessages" )
CATCH
Alert( "MSMAPI.Messages faild!" )
BREAK
END
WITH OBJECT oMessage
:SessionID := oSession:SessionID
:Compose()
:RecipAddress := "tests@xharbour.org"
:AddressResolveUI := .T.
:ResolveName()
:MsgSubject := "email from xHarbour"
:MsgNoteText := "Hi Brian, here it is..."
:AttachmentIndex := 0
:AttachmentPosition := 0
:AttachmentPathName := "c:\xharbour\tests\test.prg"
:Send( .F. ) // .T. Interactive or .F. for automated.
END
oSession:SignOff()
RETURN
With best regards ! Rimantas
Rimantas U.