Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPIMessage Problems Attaching
Message
 
À
24/05/1999 17:22:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00222242
Message ID:
00222348
Vues:
24
>I am trying to attach a file to email, but I keep getting that error that the Attachment is not found even though it really is there. Here is my code:
>
>WITH THISFORM
> .oleSession.Signon
> IF .oleSession.SessionID > 0
> .oleMessage.SessionID = .oleSession.SessionID
> ELSE
> RETURN .F.
> ENDIF
>
> .oleMessage.Compose
> .oleMessage.MsgSubject="Witness Needed"
> .oleMessage.AttachmentIndex=.oleMessage.AttachmentCount+1
> .oleMessage.AttachmentPathName="c:\form.pdf"
> .oleMessage.AttachmentName=""
> .oleMessage.RecipIndex = 0
> .oleMessage.RecipDisplayName=RecipName
> .oleMessage.ResolveName
> .oleMessage.Send(0)
>
>ENDWITH
>
>Thanks for the help-Sara

Along with DFs example, I've found that all you need do is say .AttachmentIndex=.AttachmentCount - this will take care of it (attachment count will then be automatically updated).
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform