Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapi
Message
 
 
À
30/12/1998 16:31:51
Gordon Evans
Megabyte Computer Services Ltd
Sheffield, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: Mapi
Divers
Thread ID:
00171724
Message ID:
00171808
Vues:
30
Gordon,

AttachmentPathName needs to be a fullpath file name that the email program has access to. AttachmentName needs to be just the filename with no path.

>New boy to this conference.
>I'd like to email attached files using MAPI.
>I can email messages with 100% reliably with fom based on the solutions example, but when I try to attach files the form fails.
>
>I've tried
>
>WITH THISFORM.OLEMessage
> .MsgIndex=-1
> .RecipDisplayName=ALLTRIM(THISFORM.txtSendTo.VALUE)
> .MsgSubject=THISFORM.txtSubject.VALUE
> .MsgNoteText=THISFORM.edtMessage.VALUE
> .SessionID=THISFORM.olemapisession.sessionid
> .AttachmentIndex = 0 && first attachment
> *.AttachmentName && no value assigned
> .AttachmentPathName = "C:\testattachment.txt"
>
> * or
> .AttachmentName = "testattachment.txt"
> .AttachmentPathName = "C:\"
>
>Nether of which work
>
>If change send(.f.) && no user interaction
> to send(.t.) && user to create mail
> manualy Attach a file
>It works
>
>Help please.
>
>Gordon.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform