Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with MAPI
Message
De
26/03/2003 10:08:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00770016
Message ID:
00770212
Vues:
14
to send attachments you can use the following syntax:
with loMAPIMessage
  .AttachmentIndex = .AttachmentCount
  .AttachmentName = right(cFileName, len(cFileName) - rat('\', cFileName))
  .AttachmentPathName = cFileName
endwith
being cFileName the name of the file to attach with the full path, and loMAPIMessage the MS MAPI Message object.
Hope it helps,
Javier.

>I'm tring to send an attachment using MAPI but the attachment ends up embedded in the main body (at the end).
>
>I'm following the notes in MegaFox (page 91) by setting the AttachmentPosition ato the end of the main body -->
>
>oMapi.MsgNoteText = cText + CHR(13) + CHR(13) + SPACE(5)
>oMapi.AttachmentPosition = LENC(cText) + 3
>
>I'm not getting any errors. Any ideas?
>
>John
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform