Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP-Outlook
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00222848
Message ID:
00223005
Vues:
44
>On the same lines, I have this code someone posted here previously that I made a change or 2 to:
>LOCAL loForm
>loForm = createobject( 'form')
>WITH OFORM
> .addobject("Session1", "olecontrol", "MSMAPI.mapiSession")
> .addobject("Message1", "olecontrol", "MSMAPI.mapiMessages")
> .Session1.signon()
> WITH .MESSAGE1
> .sessionid = OFORM.Session1.sessionid
> .compose()
> .msgsubject = "Put the Subject here"
> .msgnotetext = "Test goes here, you can send anything you want"
> .AddressResolveUI = .T.
> .RecipAddress = "DOUGLAS.OSBORNE@SASIPOS.COM"
> .AttachmentName="mistakes.txt"
> .AttachmentPathName="c:\dbm\"
> *
> *-OLE IDispatch exception code 0 from MAPIMessages:
> *-Upspecified Failure has occurred..
> *
> .send()
> ENDWITH
> .Session1.signoff()
>ENDWITH
>
>I get the error as noted above the send code - what parameter setting am I missing? How do you send more than 1 attachment?

The Attachmentname is just a text name assigned to the file...you should put the entire file path+name in AttachmentPathName.

I haven't sent more than one, maybe just a repeat of it will work...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform