Hi, did someone knows how i can add attachment files (JPG, AVI etc...) to a
message with Microsoft MAPI Message Control ?

I try this but it dosn't work:

IF !this.parent.signon() && Use the custom method
RETURN
ENDIF

IF this.parent.LogSession && Check if the user was able to login
this.parent.OleMMess.sessionid=this.parent.OleMSess.sessionid

* Start a new mail message and build the text
this.parent.OleMMess.compose
lcMessageText="My message ....bla bla bla"
SET STEP ON
this.parent.OleMMess.msgnotetext=lcMessageText
this.parent.OleMMess.msgsubject="subject.....bla bla bla"

this.parent.OleMMess.attachmentIndex=1
this.parent.OleMMess.attachmentName ="dsc0001.jpg"
this.parent.OleMMess.attachmentPathName="c:\temp\dsc0001.jpg"

this.parent.OleMMess.send(1)
IF this.parent.logsession
this.parent.OleMSess.signoff
ENDIF && Session Handle test
ENDIF

Thanks for your help !

RE: Microsoft MAPI Message control... by Leemi

Leemi
Wed Mar 03 16:12:56 CST 2004

Hi Maxime:

Try the code in this article:

181899 PRB: Multiple E-mail Attachments Cause Error with MSMAPI OCX
http://support.microsoft.com/?id=181899


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003


>Hi, did someone knows how i can add attachment files (JPG, AVI etc...) to a
>message with Microsoft MAPI Message Control ?

>I try this but it dosn't work:

>IF !this.parent.signon() && Use the custom method
> RETURN
>ENDIF

>IF this.parent.LogSession && Check if the user was able to login
> this.parent.OleMMess.sessionid=this.parent.OleMSess.sessionid

>* Start a new mail message and build the text
>this.parent.OleMMess.compose
>lcMessageText="My message ....bla bla bla"
>SET STEP ON
>this.parent.OleMMess.msgnotetext=lcMessageText
>this.parent.OleMMess.msgsubject="subject.....bla bla bla"

> this.parent.OleMMess.attachmentIndex=1
>this.parent.OleMMess.attachmentName ="dsc0001.jpg"
>this.parent.OleMMess.attachmentPathName="c:\temp\dsc0001.jpg"

>this.parent.OleMMess.send(1)
> IF this.parent.logsession
> this.parent.OleMSess.signoff
> ENDIF && Session Handle test
>ENDIF

>Thanks for your help !