Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Email with attachment
Message
From
10/09/2002 12:57:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Send Email with attachment
Miscellaneous
Thread ID:
00698882
Message ID:
00698882
Views:
116
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
Next
Reply
Map
View

Click here to load this message in the networking platform