Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Email with attachment
Message
De
10/09/2002 12:57:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Send Email with attachment
Divers
Thread ID:
00698882
Message ID:
00698882
Vues:
115
All,

I wrote some code to send email with attachment. If my default email software is 'Outlook express' it work well. But if my default email software
is 'Microsoft Outlook2000". I got a error message "OLE IDISPATCH EXCEPTION CODE 0 FROM MAPIMESSAGES:UNSPECIFIED FAILURE HAS OCCURRED..!(1429)".

Why?

**********************************
trytolog=Thisform.session.signon
mapimessages1=thisform.message
Mapisession1=thisform.session
mapimessages1.sessionID=Mapisession1.sessionID
mapimessages1.compose
mapimessages1.recipaddress="abc@abc.com"
mapimessages1.attachmentpathname="c:\internet.txt"
mapimessages1.msgsubject="test"
mapimessages1.msgnotetext="TEST"
mapimessages1.send(1)
trytolog=Thisform.session.signoff
************************************

Regards
Ricky
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform