Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SFMAPI fails if attachment is added
Message
From
19/10/2000 20:28:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Stonefield
Title:
SFMAPI fails if attachment is added
Miscellaneous
Thread ID:
00431913
Message ID:
00431913
Views:
56
I'm attempting to use the SFMAPI OLE control to send e-mail with attachments. I have successfully send messages and have negociated the bug that resets the directory path on signon(), but I'm having difficulting attaching a file. The process fails on line 50 (method code "sfmapi.send") .oMAPIMessage.Send(1) with the error message:

"OLE IDispatch exception code 0 from MAPIMessages: unspecified failure has occurred.."

The error message is not terribly helpful. Anybody have a clue what is going on?

Here is my code:
WITH THISFORM.omapi
        .newmessage()
	.addrecipient(ALLT(lcEmailName))
	.addattachment(ALLT(lcFileName))
	.SEND(.T.)
ENDWITH
The file exists and is good. It includes full path. The email address is valid.
Timothy D. Yeaney
MCSD, Charter Member
President, PAFOX (Potomac Area Fox User Group)
mailto:tim@eagleeyeinc.com
Vice President
Eagle Eye Publishers, Inc
Broaden Your Vision, Sharpen Your Focus
Next
Reply
Map
View

Click here to load this message in the networking platform