Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI with Attachments
Message
From
28/07/2003 21:45:09
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00814212
Message ID:
00814394
Views:
19
This.nerrors=1 and at the point the error message in This.aerrors is VFP Error 1429 Sendmail 184


>In the sendmail method try to replace the last
RETURN 0
>* with
>RETURN This.nErrors
Or check o.geterrorcount() in addition to return value.
>
>>Once again I'm in awe of how quickly you can respond < s >
>>
>>I have tried the class and it appears to be working - i.e. the sendmail method returns 0 indicating no errors. Problem is, also no email. Stepping through the method code I find everything is exactly as expected until stepping into the .Send(llShowOutlook). There I find I'm in the error routine and the error is the 1429 OLE error. Oddly, the .send(llShowOutlook) doesn't effect the return value so the method leaves returning 0
>>
>>In any case, no clue as to what is going on now. It successfully created the mapi objects etc
>>
>>here's my test code:
>>
>>
>>
>>SET CLASSLIB TO mapimail.vcx additive
>>
>>o=CREATEOBJECT("cusmapi")
>>
>>lctext="This is the message to be sent by MAPI"
>>lcfile="mapimail.txt"
>>
>>lreturn = o.sendmail("SCHARNAS","asstcpa","chankey@f1tech.com","TEST",lctext,lcfile,.t.,.t.,.f.)
>>
>>RETURN "I AM DONE AND lreturn = "+STR(lreturn)
>>
>>


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform