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