Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SFMAPI fails if attachment is added
Message
De
19/10/2000 20:28:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Titre:
SFMAPI fails if attachment is added
Divers
Thread ID:
00431913
Message ID:
00431913
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform