Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI with Attachments
Message
 
 
To
28/07/2003 15:02:57
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00814212
Message ID:
00814307
Views:
18
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)
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform